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

[suggestion] service_id specific timetables #126

Open
brodyFlannigan opened this issue Dec 9, 2021 · 2 comments
Open

[suggestion] service_id specific timetables #126

brodyFlannigan opened this issue Dec 9, 2021 · 2 comments

Comments

@brodyFlannigan
Copy link

Hey!

I think it would be really great to be able to specify exactly which service_ids are included in a particular timetable, as sometimes simply specifying particular day/date/time intervals just doesn't provide the granularity needed.

My suggested implementation would be to create a new optional file timetable_services.txt in which one can specify timetable_id and service_id. Ideally more than one service_id could be defined for each timetable.

Thanks ahead of time!

@brendannee
Copy link
Member

Great suggestion.

One way we could accomplish this without needing a new file would be to add a column to timetables.txt called service_id. If you enter a service_id, then it would ignore the days of the week specified and just pull all trips for the route, date range and time range specified. If you wanted to have a timetable that used more than one service_id, you can include multiple lines in timetables.txt with the same timetable_id in the same way you can currently add multiple routes to the same timetable: https://gtfstohtml.com/docs/timetables#multi-route-timetables

Example

timetable_id,route_id,direction_id,start_date,end_date,monday,tuesday,wednesday,thursday,friday,saturday,sunday,service_id,start_time,end_time,include_exceptions,timetable_label,service_notes,orientation,timetable_page_id,timetable_sequence,direction_name,show_trip_continuation
0,2034,0,20150101,20151122,1,1,1,1,1,1,0,service_id_1,,,0,101 Northbound,Mon-Sat AM,horizontal,1,0,Northbound,0
0,2034,0,20150101,20151122,1,1,1,1,1,1,0,service_id_2,,,0,101 Northbound,Mon-Sat AM,horizontal,1,0,Northbound,0

What do you think of this approach?

@brodyFlannigan
Copy link
Author

brodyFlannigan commented Dec 9, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants