
org.opentripplanner.graph_builder.issues.StopNotLinkedForTransfers 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
The newest version!
package org.opentripplanner.graph_builder.issues;
import org.locationtech.jts.geom.Geometry;
import org.opentripplanner.graph_builder.issue.api.DataImportIssue;
import org.opentripplanner.street.model.vertex.TransitStopVertex;
import org.opentripplanner.street.model.vertex.Vertex;
public record StopNotLinkedForTransfers(TransitStopVertex stop) implements DataImportIssue {
private static final String FMT = "Stop %s not near any other stops; no transfers are possible.";
private static final String HTMLFMT =
"Stop \"%s (%s)\" not near any other stops; no transfers are possible.";
@Override
public String getMessage() {
return String.format(FMT, stop);
}
@Override
public String getHTMLMessage() {
return String.format(
HTMLFMT,
stop.getLat(),
stop.getLon(),
stop.getDefaultName(),
stop.getStop().getId()
);
}
@Override
public Vertex getReferencedVertex() {
return this.stop;
}
@Override
public Geometry getGeometry() {
return stop.getStop().getGeometry();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy