Any C# Developer to guide me

I’m not a C# developer, but I can try to explain protobufs. Don’t think of it as an API, think of it as an SDK. You provide a specification (like GTFS-realtime) to protoc (the protobuf compiler) and it outputs a bunch of C# classes you can use to read a feed in that specification.

So you need to:

  • Get a TfNSW-flavored GTFS-realtime proto file
  • Compile it to a C# library
  • Fetch the feed over HTTP
  • Use the library to read the data from the feed

Hope that helps!

2 Likes