Re: GTFS question

217 views
Skip to first unread message

George Schneeloch

unread,
May 24, 2013, 10:03:19 AM5/24/13
to massdotd...@googlegroups.com
I think C++/Java/Python are the officially supported languages but there are many third party ports for other languages (even Python 3 has its own port). I googled and there are a few projects which handle protocol buffers for C#, like http://code.google.com/p/protobuf-csharp-port/
-George


On Fri, May 24, 2013 at 9:40 AM, <kmh...@gmail.com> wrote:
Very new to this format, coming from the database development world so please excuse my ignorance if this is obvious.  Trying to work with your real-time GTFS feed using C#, went through all the Google documentation/tutorials and nowhere does it mention anything about the .pb file format...do I have to use C++/Java/Python to consume that feed?   I had no problem working with .proto files.  Thanks!

--
You received this message because you are subscribed to the Google Groups "MBTA Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to massdotdevelop...@googlegroups.com.
To post to this group, send email to massdotd...@googlegroups.com.
Visit this group at http://groups.google.com/group/massdotdevelopers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

kmh...@gmail.com

unread,
May 24, 2013, 12:04:16 PM5/24/13
to massdotd...@googlegroups.com
Yeah that's the port that I was using yesterday, I was able to set it all up and use it in VS, but I was only able to read/write to .proto files, not .pb (at least that I know of).  I'm trying to figure out if I have to use C++/java/python to read a .pb file

George Schneeloch

unread,
May 24, 2013, 1:10:32 PM5/24/13
to massdotd...@googlegroups.com
.proto files only specify what the protocol looks like, they are code files. .pb files are binary files containing the actual data which are constantly updated with live data. You would use ProtoGen.exe on the .proto file to produce C# files which contain information about how the GTFS realtime protocol works. Then you use those files on a .pb file URL to parse its information into usable data structures.
-George


--
Reply all
Reply to author
Forward
0 new messages