do I have to use GRPC?

153 views
Skip to first unread message

Josh Howe

unread,
Oct 2, 2023, 10:20:43 AM10/2/23
to mtadeveloperresources
Hi,

I'm just getting started with this API. It looks like all  the Subway Real-Time Feeds (https://api.mta.info/#/subwayRealTimeFeeds) return binary data. Are there any simple endpoints with real-time train status that return JSON or XML? Thanks. 

Jon Thornton

unread,
Oct 6, 2023, 9:36:30 AM10/6/23
to mtadeveloperresources
All of the MTA-hosted feeds are GRPC. There are a some tools to convert their feed to different formats though; here's one: https://github.com/jonthornton/MTAPI

Raschke, Kurt

unread,
Oct 10, 2023, 5:08:23 PM10/10/23
to mtadevelop...@googlegroups.com

Just for the sake of clarity – GTFS-realtime feeds are serialized using Protocol BuffersgRPC is an RPC framework which happens to use Protocol Buffers for serialization but is otherwise unrelated to our GTFS-rt feeds, which can be retrieved via HTTP.

 

Kurt Raschke

Senior Director, Subways Coordination and Solutions

MTA New York City Transit

--
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/5a52680d-18e5-43a8-a44c-94f96b06ab2en%40googlegroups.com.

Confidentiality Note: This e-mail, and any attachment to it, may contain privileged and confidential information and is intended for the use of the individual(s) or entity named on the e-mail. Unauthorized disclosure of this message is prohibited. If you have received this message in error, please notify the sender immediately by return e-mail and destroy this message and all copies thereof, including all attachments.
Reply all
Reply to author
Forward
0 new messages