All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy