Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default implementation for TripCreator with frequency support #146

Open
nlehuby opened this issue Jan 4, 2019 · 5 comments
Open

Default implementation for TripCreator with frequency support #146

nlehuby opened this issue Jan 4, 2019 · 5 comments

Comments

@nlehuby
Copy link
Collaborator

nlehuby commented Jan 4, 2019

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
@pantierra
Copy link
Contributor

Currently the standard trips creator uses a kind of standartized time table input format, with the idea to cover all possibilities. In Managua we also have frequency/interval based data, we just converted it to the timetable format with a simple script. Your proposed direct interval approach is surely a simplification, which is interesting.

Is your proposal to remove the timetable input and to replace it with the interval approach? Or do think on supporting both? In the latter case, how do you suggest to differentiate between the two?

@ialokim
Copy link
Contributor

ialokim commented Jan 6, 2019

converted it to the timetable format with a simple script

Just for reference, you can find it here.
I think back then we went for the standard stop_times.txt approach as the frequencies.txt information seemed to be not fully supported by some GTFS consumers (?). There was also the idea of integrating the script into the osm2gtfs code.

to differentiate between the two [approaches]?

I would say, if the schedule_source key is present and set within the configuration (as e.g. for Estelí), it would use the already available standard approach. If it is not present, osm2gtfs could automatically use the schedule information from OSM or dump default values if there is no information on OSM either as proposed in #118.

@nlehuby
Copy link
Collaborator Author

nlehuby commented Jan 6, 2019

👍 fully agreed with @ialokim:

  • if schedule_source is provided, use it as it currently works
  • else if interval and duration tags are set in OSM, use them
  • else use default values to generate a dumb GTFS anyway

@prhod
Copy link
Collaborator

prhod commented Jan 7, 2019

Very nice idea 👍

@nlehuby nlehuby self-assigned this May 29, 2019
@nlehuby
Copy link
Collaborator Author

nlehuby commented Feb 3, 2020

The ci_abidjan creator implements this and can be used a basis to add this feature in the default implementation.

@nlehuby nlehuby removed their assignment Feb 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants