Skip to content

Default implementation for TripCreator with frequency support #146

Open
@nlehuby

Description

We should allow the default TripCreator to work without schedule data and then generate a GTFS with a frequency.txt file that only uses OSM data.

Even if it won't fit all needs, it will allow to create very easily a first GTFS from OSM data that could even be usable for some simple cases (long distances buses with low frequency, ferries and shuttle bus, subways with high frequency, etc)

We can use

  • the interval OSM tag to get the frequency : https://wiki.openstreetmap.org/wiki/Key:interval
  • the opening_hours to define the stop time at the first stops
  • the duration key (and the GTFS interpolate stop time utility) to deduce times at each stops

The Accra creator is a good start to implement this as it already does that.
Well, almost :

  • it has its opening_hours hard coded
  • it uses travel_time tag instead of duration and frequency tag instead of interval
  • the tags are read on either the route or the route_master (we should to be smart enough to handle both)
  • the conditional part of the interval tag is not supported

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions