MTA Subway, Bus, LIRR data as json format

828 views
Skip to first unread message

Eric Li

unread,
Oct 1, 2015, 11:36:23 PM10/1/15
to mtadeveloperresources
Hello, everyone.

Can anyone help me?
I am a chinese mobile developer.
For my app, I need to have the datas of all NYC subway, bus, LIRR stops and routes as json format.

I think I can do it by using MTA service, but I can get only GTFS format data from it.
How can I get the data as json format from MTA? Is it possible?

Please help me.
Thanks

Aaron Donovan

unread,
Oct 2, 2015, 7:18:30 PM10/2/15
to mtadeveloperresources
Hi Eric,

The MTA does not publish data in JSON format. Other developers have copied the GTFS schedules and serialized the data to JSON, XML or databases. The GTFS spec should be clear enough about the format, and this should not be terribly difficult to accomplish.   

Perhaps others want to weigh in with advice?

-Aaron

Nathan Johnson

unread,
Oct 2, 2015, 8:24:22 PM10/2/15
to mtadeveloperresources
I haven't tried it, but I believe you could import the GTFS files (routes.txt, trips.txt, etc.) into Google Fusion Tables, which will give you a RESTful API to access the data in JSON format.


On Thursday, October 1, 2015 at 11:36:23 PM UTC-4, Eric Li wrote:

Eric Li

unread,
Oct 2, 2015, 8:42:30 PM10/2/15
to mtadeveloperresources
Thanks for your reply.

Then how can I use GTFS data in my app?
Do I have to save that data in my app? or build the server which converts the GTFS to JSON REST api?

Thanks again.
Eric

Laidig, David

unread,
Oct 5, 2015, 12:28:01 PM10/5/15
to mtadevelop...@googlegroups.com

There are now several services that claim to do this on a global or near-global scale.

In the interest of impartiality, maybe another dev could chime in with links?

--
You received this message because you are subscribed to the Google Groups "mtadeveloperresources" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mtadeveloperreso...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Joa

unread,
Oct 6, 2015, 12:01:25 AM10/6/15
to mtadeveloperresources
Scaling across North America including New York: www.transicast.com
You can query stops by geo location and route details by route id; responses in XML or json.
Beyond this, also get scheduled and real-time departures transposed from GTFS-RT, NextBus and other formats, covering the need for a data-consumer side server. Please contact me off list if interested.
Joachim Pfeiffer
Principal

To unsubscribe from this group and stop receiving emails from it, send an email to mtadeveloperresources+unsub...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages