Metra GTFS patch

40 views
Skip to first unread message

ian

unread,
Jun 12, 2013, 9:15:51 PM6/12/13
to transit-d...@googlegroups.com
Probably something most of you have already taken care of, but in case anyone hasn't gotten around to it, this should help. A couple problems we've noticed with Metra's GTFS that have gone awhile without being fixed:
– 2 stop_times are missing for NCS #120
– holiday schedules are not included

It's a pretty easy fix to add the two stop_times and calendar_dates exceptions for the holidays, so if anyone's interested there's a gist here: https://gist.github.com/ianleighton/5770478 also included below. Note that sometimes Metra runs "early quit" modified schedules leading up to a holiday, and those are announced just prior to the holiday and not included in the GTFS.

Hope that helps someone.

i

———
stop_times.txt, add:
NCS_NC120_V1, 19:33:00, 19:33:00, LIBERTYVIL, 10, 0, 0
NCS_NC120_V1, 19:43:00, 19:43:00, LAKEFRST, 12, 0, 0
 
These two lines will add stops for NCS #120 to Libertyville & Lake Forest on the MD-N line. NCS train #120 makes two stops on that line, but Metra generally doesn't include them in their gtfs data.
 

calendar_dates.txt:
service_id, date, exception_type
S1,20130704,2
S3,20130704,1
S1,20130902,2
S3,20130902,1
S1,20131128,2
S3,20131128,1
S1,20131225,2
S3,20131225,1
S1,20140101,2
S3,20140101,1
S1,20140526,2
S3,20140526,1
S1,20140704,2
S3,20140704,1
S1,20140901,2
S3,20140901,1
S1,20141127,2
S3,20141127,1
S1,20141225,2
S3,20141225,1
S1,20150101,2
S3,20150101,1
S1,20150525,2
S3,20150525,1
 
replaces weekday schedules with sunday schedules for all holidays through Memorial Day 2015.
Reply all
Reply to author
Forward
0 new messages