org.opentripplanner.graph_builder.issues.BogusShapeGeometryCaught 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.model.StopTime;
import org.opentripplanner.transit.model.framework.FeedScopedId;
public class BogusShapeGeometryCaught implements DataImportIssue {
public static final String FMT =
"Shape geometry for shape_id %s cannot be used with stop " +
"times %s and %s; using straight-line path instead";
final FeedScopedId shapeId;
final StopTime stA;
final StopTime stB;
public BogusShapeGeometryCaught(FeedScopedId shapeId, StopTime stA, StopTime stB) {
this.shapeId = shapeId;
this.stA = stA;
this.stB = stB;
}
@Override
public String getMessage() {
return String.format(FMT, shapeId, stA, stB);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy