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
package org.opentripplanner.graph_builder.issues;
import org.opentripplanner.graph_builder.DataImportIssue;
import org.opentripplanner.routing.graph.Vertex;
import org.opentripplanner.routing.vertextype.TransitStopVertex;
public class StopNotLinkedForTransfers implements DataImportIssue {
public static final String FMT = "Stop %s not near any other stops; no transfers are possible.";
public static final String HTMLFMT = "Stop \"%s (%s)\" not near any other stops; no transfers are possible.";
final TransitStopVertex stop;
public StopNotLinkedForTransfers(TransitStopVertex stop){
this.stop = stop;
}
@Override
public String getHTMLMessage() {
return String.format(HTMLFMT, stop.getLat(), stop.getLon(), stop.getName(), stop.getStop().getId());
}
@Override
public String getMessage() {
return String.format(FMT, stop);
}
@Override
public Vertex getReferencedVertex() {
return this.stop;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy