java.lang.Object
org.entur.netex.gtfs.export.model.GtfsShape

public class GtfsShape extends Object
A GTFS shape made of a list of shape points.
  • Constructor Details

    • GtfsShape

      public GtfsShape(String id, List<org.onebusaway.gtfs.model.ShapePoint> shapePoints, List<Double> travelledDistanceToStop)
  • Method Details

    • getId

      public String getId()
    • getShapePoints

      public List<org.onebusaway.gtfs.model.ShapePoint> getShapePoints()
    • getDistanceTravelledToStop

      public double getDistanceTravelledToStop(int i)
      Return the distance travelled on the shape from the start to the stop number i. The distance travelled to stop number 1 is 0 meters.
      Parameters:
      i - sequence number of the stop in the JourneyPattern, starting at 1.
      Returns:
      the distance travelled on the shape from the start to the stop number i, in meters.