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

org.opentripplanner.graph_builder.issues.BogusShapeGeometryCaught Maven / Gradle / Ivy

There is a newer version: 2.6.0
Show newest version
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