UrbanAnalyst / gtfsrouter

Routing and analysis engine for GTFS (General Transit Feed Specification) data
https://urbananalyst.github.io/gtfsrouter/
81 stars 17 forks source link

consider calendar_dates #35

Closed AlexandraKapp closed 4 years ago

AlexandraKapp commented 4 years ago

some GTFS Feeds (e.g. Paris or Osnabrück) use calendar_dates for the regular schedule. Those are not considered in the timetable construction.

grafik

Not sure if this can be integrated in the current logic, where only weekdays are considered of if it needs to be switched to a logic where actual dates are used.

mpadge commented 4 years ago

The gtfs_timetable() function has a date parameter which can be used to extract a timetable for a date specified in caliendar_dates. Is that what you mean?

AlexandraKapp commented 4 years ago

Oh perfect thanks! I missed that

AlexandraKapp commented 3 years ago

sorry, I have another question on this: 😬 If I understand correctly, gtfs_timetable() either uses date OR day? In that case the option is not covered, where a feed mixes both possibilities (e.g. in the large DELFI feed). Maybe, if a date is specified it could be adapted to also parse the calendar.txt for calendars the day is included in?