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

org.opentripplanner.graph_builder.issues.BogusShapeDistanceTraveled 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;

public class BogusShapeDistanceTraveled implements DataImportIssue {

  public static final String FMT =
    "The shape_dist_traveled field for stoptime %s is wrong -- " +
    "either it is the same as the value for the previous stoptime, or it is greater " +
    "than the max shape_dist_traveled for the shape in shapes.txt";

  final StopTime st;

  public BogusShapeDistanceTraveled(StopTime st) {
    this.st = st;
  }

  @Override
  public String getMessage() {
    return String.format(FMT, st);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy