NYC MTA - Hello World example

934 views
Skip to first unread message

Theo Chino

unread,
Jul 4, 2013, 2:00:48 PM7/4/13
to gtfs-r...@googlegroups.com
Dear MTA or anyone,

Realtime, 123456 lines.

Doc on google talks about Text files, MTA website show a live example, and I am provided in a link with a file that redirect to another file that is binary.

Can you provide a Hello World type of example on how to read the thing ?

Regards,
Theo Chino

Brian Ferris

unread,
Jul 5, 2013, 2:33:01 AM7/5/13
to gtfs-r...@googlegroups.com
GTFS-realtime data is encoded using Protocol Buffers, a binary format optimized for compact data transfers.  If you are new to the format, check out the GTFS-realtime spec documentation:


If you are looking for code / tutorials / etc for working with GTFS-realtime, the OneBusAway project has a lot of good resources:


Thanks,
Brian



--
You received this message because you are subscribed to the Google Groups "GTFS-realtime" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gtfs-realtim...@googlegroups.com.
To post to this group, send email to gtfs-r...@googlegroups.com.
Visit this group at http://groups.google.com/group/gtfs-realtime.
For more options, visit https://groups.google.com/groups/opt_out.



Michael S

unread,
Oct 6, 2013, 10:47:06 PM10/6/13
to gtfs-r...@googlegroups.com
Hi Brian,

I think asking for a "hello world" program for GTFS-realtime means a simple, minimal program for an example. 

"One Bus Away" seems to be designed to show every capacity of the entire system, including for transit agencies. I tried to run the "Quick Start", but since I don't know java I couldn't decipher the error messages. 

I have two related questions:

1) Are there any sample programs for GTFS-reatime other than the one in java? 

I mean are there documented program that illustrate how GTFS-realtime works, not someone's uncommented project on github.

2) Are there any sample programs for the MTA's subway.proto implementation at all?


Michael

Stefan de Konink

unread,
Oct 7, 2013, 3:53:03 AM10/7/13
to gtfs-r...@googlegroups.com
You are asking for:

On Monday, October 7, 2013 4:47:06 AM CEST, Michael S wrote:
> minimal program for an example.

While you mean:

> are there documented program that illustrate how
> GTFS-realtime works,


Please clarify: do you want a program that opens a protobuf file/websocket and iterates over its entities? Or something that helps you through setting up a development chain from protobuf files? Or just a program that is not in Java?

We currently have C and Python readers, targeted to the problems we want to solve.

Stefan

Reply all
Reply to author
Forward
0 new messages