NEED_HELP_IN_PARSING_RESPONSE_DATA

129 views
Skip to first unread message

gaurav panchal

unread,
Apr 26, 2022, 8:53:27 AM4/26/22
to mtadeveloperresources
Hello community,
I am just started working on MTA services using Node js, 
I need help in parsing the response data coming from the url : 
please use demo API key to access the response data.

I am attaching the text file which contains response.



testing.txt

Konstantin Chukhlomin

unread,
May 8, 2022, 11:37:39 PM5/8/22
to mtadeveloperresources
Hi, the data served on this URL is in Protobuf format. It follows GTFS Realtime Protobuf schema.
See MTA guide about GTFS. Note that MTA has its own "extension" to generally used GTFS RT schema.

There is a way to generate Javascript files for Protobuf schema.
If you don't want to install `protoc` locally, you may use this Docker image: https://github.com/znly/docker-protobuf

PS: I made a small Go-library to work with MTA data: https://github.com/errornil/mta
Reply all
Reply to author
Forward
0 new messages