Timetable (CIF) to GTFS conversion tool

197 views
Skip to first unread message

Linus Norton

unread,
Aug 17, 2017, 3:30:35 AM8/17/17
to A gathering place for the Open Rail Data community
Hi,

Until recently I've been using the gbrail.info version of the timetable data and while I certainly have no complaints about it I was a bit uncomfortable using something that was both hosted elsewhere (as opposed to a tool) and not open source. So I built a conversion tool into the dtd2mysql project. 

Converting CIF to GTFS is quite a tricky process and anyone interested can read my blog post on it

Instructions on how to run it for yourself are listed on the github page.

In terms of what is different to the gbrail.info version - it uses CRS codes rather than TIPLOCs as stop IDs, it is more compact as it uses calendar dates to reduce the number of duplicate trips and overall it is much closer to the GTFS standard. I have done a fair amount of validation to ensure the output is correct but obviously it's a big data set and sometimes things are open to interpretation so if you notice any oddities or bugs let me know.

I hope it's useful for someone out there.

Cheers,

Linus

Eoghan Murray

unread,
Aug 17, 2017, 3:59:40 AM8/17/17
to A gathering place for the Open Rail Data community
This is super Linus, I posted an issue on the TransitFeeds tracker about gbrail.info going out of date but don't see a resolution since and I hadn't found an alternative.  Very timely.

Linus Norton

unread,
Aug 17, 2017, 4:09:23 AM8/17/17
to A gathering place for the Open Rail Data community
I hadn't noticed that. I'm a bit tied up with other things at the moment but if I get some time I'll try to create an alternative feed that gets automatically updated. 
Reply all
Reply to author
Forward
0 new messages