MobilityData / gtfs-realtime-bindings

Language bindings generated from the GTFS Realtime protocol buffer spec for popular languages.
Apache License 2.0
373 stars 129 forks source link

Add newest version of gtfs-realtime.proto #61

Closed leonardehrenfried closed 4 years ago

leonardehrenfried commented 4 years ago

Since this repo has been started, the proto file has received a few additions, which I'm interested in, so I added them.

Would you like me to generate the code as well or should that happen after the PR has been merged? For Java, which is what I'm interested in, I can do it easily. For the rest I'm not so sure.

CLAassistant commented 4 years ago

CLA assistant check
All committers have signed the CLA.

leonardehrenfried commented 4 years ago

I've also taken the liberty to add the proto file to the JAR.

Why is that useful?

If you add it, then it will be easier to add extensions to GTFS in a downstream project as the proto file stays in sync with the Java code.

barbeau commented 4 years ago

@leonardehrenfried Thanks for the pull request! I'll work on generating the code after this is merged - it's a bit of a pain to get all the platforms to compile and publish. Adding the .proto to the JAR makes sense to me too.

How soon were you looking for this? If you can wait a week or so I'd like to include the occupancy_percentage field in the next release, which is being discussed here - https://github.com/google/transit/pull/213.

leonardehrenfried commented 4 years ago

Yes, I can wait a bit since I've deployed my fork to maven central under my own group id: https://search.maven.org/artifact/io.leonard/gtfs-realtime-bindings/0.0.7/jar

barbeau commented 4 years ago

@leonardehrenfried I've opened a new PR with a more up-to-date .proto at https://github.com/MobilityData/gtfs-realtime-bindings/pull/69. Thanks for this contribution, I'm including bundling the .proto in the JAR there!