top | item 7615300

NYC Subway Data REST API

96 points| mpcadosch | 12 years ago |nycpulse.herokuapp.com | reply

37 comments

order
[+] rkuykendall-com|12 years ago|reply
App request: Android app, I enter "my" subway stops and the direction I take them ( Ex: The 1 train, uptown, from 116th ), the App simply shows me how many minutes until the next train.

I want something I can quickly open and glance at to know when I should leave, or if I should be sprinting to the station to save myself 20m late at night.

1 minute mock up:

http://rkuykendall.com/uploads/subway-app-mock-up.jpg

[+] aerialfish|12 years ago|reply
The arrival times listed on the website are likely just timetable times. Until the MTA releases real time data, I wouldn't depend too heavily on scheduled train times (especially during rush hour).
[+] mattwad|12 years ago|reply
based on experience, i'm pretty sure Google maps will take train times into account. but you have to give it the endpoints of your journey and it doesn't actually show the times.
[+] artursapek|12 years ago|reply
What would really be interesting to play with is the real-time location of each train. The MTA must have it. I wish they would publish it somehow.

I'd love to build a city-wide visualization of the train traffic that shows where it's backing up, where it's flowing smoothly, etc. It probably wouldn't be very useful for me as an NYC commuter, but purely as a visualization it would really be something.

[+] kchoudhu|12 years ago|reply
They do have real time information for the A-division (numbered trains). The B-division trains are, however, a dogs breakfast with no central monitoring or dispatch. There are plans afoot to spend a couple of billion dollars to perform a dispatch upgrade for BDiv -- but given the generally strapped nature of the MTA, I wouldn't hold my breath for the information to be made available anytime soon.
[+] m_c|12 years ago|reply
London makes this information available, allowing the sort of visualisation you suggest [1]. As you say, it's interesting but not that practical from a commuter's perspective.

[1] http://traintimes.org.uk/map/tube/

[+] paul_f|12 years ago|reply
Agree! Seems this is the most important thing and I'm surprised it's not available. Without it, this api doesn't seem to add much value.
[+] rkuykendall-com|12 years ago|reply
Could you just do this with arrival estimates? It would take some work, but I think it's possible.
[+] Ryel|12 years ago|reply
I've tried almost every NYC subway/bus app and I've finally given up. They're all fairly useless IMO. I'd rather just wait 5 minutes for the next train than bother with any of the current apps.

That being said, I wish Google would take on the challenge and include subway info.

- If somebody made a NYC transit app that I actually felt comfortable relying on... I would love push notifications ASAP of when my frequented trains/buses are down. I always forget to check the night before so please just tell me and make it relevant.

-Also I really want a detailed map of NYC that I can view offline but it needs to be lightning fast.

After all the frustration dealing with those apps, a couple months ago I finally decided to buy a paper map of NYC and start memorizing all that I can. I feel a bit more liberated and a little more like a NYC aficionado (snob).

[+] mpcadosch|12 years ago|reply
Hi guys, my initial project was to build a visualization like the one @artursapek describes, and ended up making this API because the MTA doesn't have one.

Totally agree that it would be really cool.

I made this nycpulse.herokuapp.com, but it could be so much cooler.

[+] parm289|12 years ago|reply
Any plans to open source the code?
[+] JulianWasTaken|12 years ago|reply
Nice work.

I'm not sure how I interpret that arrivals say that a train arrives at my station at 8:42:30 and 8:43:00 (within 30 seconds of each other. Also I've never seen a train arrive at either of those times :). So I wonder how accurate the arrival times are in general.

(P.S. It'd be nice if arrivals was sorted in the response, not sure if that's an artifact of the way this is parsed from the data source or not).

[+] mpcadosch|12 years ago|reply
Thanks :) Which station are you?

I couldn't find one with a 30 second interval.

[+] parm289|12 years ago|reply
For those of you on iOS looking for a polished transit app with support for multiple cities, I highly recommend Transit.[0] It allows you to quickly map trips as well as easily save data for offline access.

[0]: http://thetransitapp.com

[+] mpcadosch|12 years ago|reply
"The arrival times listed on the website are likely just timetable times. Until the MTA releases real time data"

@aerialfish you are correct, this data is taken from timetables, as the MTA does not release real-time data. But it is probably very close

[+] Buetol|12 years ago|reply
App request too: I would like an application that wake me up 5 minutes before my stop.
[+] mpweiher|12 years ago|reply
How is GTFs "..not particularly useful for developers"? I played around with it a little and found it to be perfectly usable/useful comma-separated values.
[+] dalek2point3|12 years ago|reply
+! GTFS is super awesome and most apps I know rely on it. Its consistent format that is adopted by transit systems across the globe. couldnt get more developer friendly than that. If you developed with this RESTful API, it would be hard to adapt your app to use the feed for a different city.
[+] fsk|12 years ago|reply
It has everything but what I was looking for, a notification of when a line is delayed.
[+] kbar13|12 years ago|reply
is this open source?
[+] mpcadosch|12 years ago|reply
It's not yet, but will be soon :)