
org.opentripplanner.graph_builder.issues.PrunedIslandStop Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
package org.opentripplanner.graph_builder.issues;
import org.opentripplanner.common.OsmUrlGenerator;
import org.opentripplanner.graph_builder.DataImportIssue;
import org.opentripplanner.routing.graph.Vertex;
public class PrunedIslandStop implements DataImportIssue {
public static final String FMT = "Stop %s was linked to a pruned sub graph";
final Vertex vertex;
public PrunedIslandStop(Vertex vertex) {
this.vertex = vertex;
}
@Override
public String getMessage() {
return String.format(FMT, vertex.getLabel());
}
@Override
public String getHTMLMessage() {
var url = OsmUrlGenerator.fromCoordinate(vertex.getCoordinate());
return "%s".formatted(url, getMessage());
}
@Override
public Vertex getReferencedVertex() {
return vertex;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy