NYC MTA Subway API How to Get Next Trains At a Specific Station going a Specific Direction

The Raspberry Pi is a series of credit card-sized single-board computers developed in the United Kingdom by the Raspberry Pi Foundation to promote the teaching of basic computer science in schools and developing countries.

Post Reply
User avatar
/RaspberryPi
Corporate
Posts: 2449
Joined: Wed Jun 05, 2019 1:29 am

NYC MTA Subway API How to Get Next Trains At a Specific Station going a Specific Direction

Post by /RaspberryPi »

Hey everyone,
I'm working on an LED Matrix display that uses a Raspberry Pi to show when the next trains for subways lines heading a certain direction at the station near my apartment will arrive (eg. in Apple Maps or NYC Subway or NYC Transit apps you can click on a station and it'll tell you when the next few trains for that line on that direction will arrive eg. Penn Station 2 Train Downtown to Flatbush Ave: 2, 12, 29 min). I'm having trouble figuring out how to use the data from the MTA API (https://api.mta.info/#/landing) to figure out the information I want. Here is a link to a stackoverflow post I made with more details (https://stackoverflow.com/questions/734 ... a-specific) I figured I'd post in here as well to see if anyone had any ideas. Thanks in advance for any help!!

submitted by /u/Derians
[link] [comments]

More...
Post Reply

Return to “Raspberry Pi Forum”