Simple train arrival status project

317 views
Skip to first unread message

Anand V

unread,
Jan 9, 2017, 9:11:37 PM1/9/17
to mtadeveloperresources
Hello everyone

My project is really simple, just want to get the arrival time for a particular train in a particular stop.

To do this on nodeJS, I understand I have to use the "gtfs-realtime-bindings" npm module, I also have the sample code from google on parsing request body using GTFS realtime bindings.

However, how do I use the nyct-subway.proto file in here? Any pointers is appreciated.

Thanks
Anand


Mofizur Rahman

unread,
Apr 8, 2018, 8:59:59 AM4/8/18
to mtadeveloperresources
Did you ever get your answer? I am looking for the same answer. 

Mofi.

Will Ptacek

unread,
Feb 6, 2021, 7:28:43 PM2/6/21
to mtadeveloperresources
bump?

Taylor Baldwin

unread,
Feb 7, 2021, 1:02:17 PM2/7/21
to mtadevelop...@googlegroups.com
I threw together a gist here that might help get you started. Note that you'll need to bring your own API key (either replace the import statement with your own or create the imported file and export your API key there) and you'll need to save a copy of the nyct-subway.proto definition in protobuf-defs/nyct-subway.proto.txt. I hope some of this is helpful. Let me know if you have any questions!


Taylor

On Feb 6, 2021, at 7:28 PM, Will Ptacek <willp...@gmail.com> wrote:

bump?
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/mtadeveloperresources/4ba2581d-c0eb-48a0-8253-73e51a561995n%40googlegroups.com.

Will Ptacek

unread,
Feb 7, 2021, 5:19:08 PM2/7/21
to mtadevelop...@googlegroups.com
thank you, this was very helpful

You received this message because you are subscribed to a topic in the Google Groups "mtadeveloperresources" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mtadeveloperresources/P0geHiAMp_Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mtadeveloperreso...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mtadeveloperresources/A63EEC82-0ED4-4687-8FFE-506BC303C991%40gmail.com.


--

Jon Thornton

unread,
Feb 8, 2021, 11:27:28 AM2/8/21
to mtadeveloperresources
Here is an example of how to use the realtime API in python https://github.com/jonthornton/MTAPI
Reply all
Reply to author
Forward
0 new messages