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

Multi-route timetables #9

Closed
antrim opened this issue Dec 24, 2015 · 9 comments
Closed

Multi-route timetables #9

antrim opened this issue Dec 24, 2015 · 9 comments

Comments

@antrim
Copy link
Collaborator

antrim commented Dec 24, 2015

Need: Many agencies publish timetables for a travel corridor that shows multiple routes.

Example multiple route timetables

Proposal: Enable multiple routes in a timetable, using records in timetables.txt similar to below:

timetable_id,route_id,direction_id,start_date,end_date,monday,tuesday,wednesday,thursday,friday,saturday,sunday,route_label,service_notes,direction_label
81,1033,0,20150101,20160116,0,0,0,0,0,1,1,"44",Ending January 16,North
81,1035,0,20150101,20160116,0,0,0,0,0,1,1,"48",Ending January 16,North

Notice the new use of route_label. It may be necessary to look at how timetables are labeled as a whole if they incorporate multiple routes.

@brendannee
Copy link
Member

Multi-route support is live - it was a little tricky to include.

I'm sure there a lot of ways that it will need to be improved and extended to support various configurations, so let me know when you find issues and example agencies/routes.

@livemixlove
Copy link
Collaborator

@brendannee is this still possible?

@brendannee
Copy link
Member

@livemixlove I'm not sure - Its not a feature I have used in a while. It looks like Sonoma's Route 44 is using it: http://sctransit.com/maps-schedules/route-44-route-48/ - but perhaps those timetables were hand coded.

You could check how Sonoma's schedules are being generated for that route - let me know if you want me to look into this feature more and if you have a GTFS file that has a pair of routes which line up that you'd like me to test this on.

@tsherlockcraig
Copy link
Collaborator

tsherlockcraig commented Jun 28, 2018 via email

@tsherlockcraig
Copy link
Collaborator

tsherlockcraig commented Jun 28, 2018 via email

@tsherlockcraig
Copy link
Collaborator

Cool so yes @livemixlove let's work with the feature and maybe there are bugs that we need to fix.

@brendannee
Copy link
Member

@thomastrillium hkvlhm thomastrillium livemixlove anniekfifer ed-g
and katsiarynamashokha are added as collaborators to this repo. (its public though, so I think anyone can comment here)

I can probably get multiroute timetables working pretty quickly if you want me to - I'd just need an example of what it should look like and a valid feed. I could use Sonoma Route 48/48X/54 if you want - does the current latest GTFS line up with the existing schedule here: http://sctransit.com/maps-schedules/route-44-route-48/ ? Or, if you are working on a new agency, let me know what feed and routes you are trying to make a multiroute timetable for.

@brendannee brendannee reopened this Jun 29, 2018
@NomeQ
Copy link

NomeQ commented Oct 5, 2018

@brendannee I have a concrete example of a multi-route timetable we'd like to be able to generate. I'm attaching a feed with just the 2 combined timetables we'd like to make in timetables.txt, a correct timetable_stop_order.txt, and the client PDF that's pretty much what we'd like the output to be like.
victorville-ca-us-commuter.zip
VVTA_NTC-COMMUTER_SCHEDULE_20140127.pdf

@brendannee
Copy link
Member

I finally got around to adding this feature in version 0.20.0 a509c94.

I used your exact GTFS referenced above to test it out and the combined timetables worked.

It required quite a few updates across the codebase, and if you have any custom templates you use, you'll need to update them anywhere they call timetable.route_id or timetable.route. These have been changed to timetable.route_ids and timetable.routes both of which are arrays. You can see an example of the type of template change required here: a509c94#diff-1b8e973d2e0f44aced017c67053f613c

If this is still relevant to you - try it out and let me know how it works for you.

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

5 participants