org.opentripplanner.graph_builder.issues.BogusShapeGeometryCaught Maven / Gradle / Ivy
package org.opentripplanner.graph_builder.issues;
import org.opentripplanner.graph_builder.DataImportIssue;
import org.opentripplanner.model.FeedScopedId;
import org.opentripplanner.model.StopTime;
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);
}
}