- Notifications
You must be signed in to change notification settings - Fork1.9k
Switch to osmpbf#3089
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Switch to osmpbf#3089
Uh oh!
There was an error while loading.Please reload this page.
Conversation
otbutz commentedDec 13, 2024
otbutz commentedDec 13, 2024
I've added a unit test just to be sure. At least the decoding seems to work correctly. |
otbutz commentedDec 13, 2024
Blocked byMobilityData/gtfs-realtime-bindings#138 😞 |
otbutz commentedDec 13, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@karussell we could simply generate the protobuf classes for |
otbutz commentedJan 7, 2025
@karussell The current PR now generates both classes from their protobuf source. |
karussell commentedJan 20, 2025
Thanks for the work here@otbutz!
I would avoid creating the pbf as part of the build as I made not too good experiences with different IDEs when this is done. Probably the better way is to fork and create com.graphhopper.external::gtfs-realtime-bindings? If the issue is a blocking issue for this PR? |
otbutz commentedJan 20, 2025
Fair point. I've tested the integration in Intellij which worked flawlessly. I've added the necessary m2e annotations for Eclipse as well.
We'd need to create an additional external project if we take that approach.VectorTile was manually generated fromvector_tile.proto and also needs to be kept in sync with the protobuf version we're using internally. |
otbutz commentedAug 21, 2025
@karussell how should we proceed here? I can create two repositories which encapsulate the pre-built protobuf classes. |
karussell commentedAug 21, 2025
With two projects do you mean the VectorTile and realtime GTFS dependencies? Currently we are using the VectorTile.java which was created once. Couldn't we just update it to use the more recent 4.x version without the need for an external dependency? btw: Does the PBF version update have other advantages, such as faster import? |
otbutz commentedAug 21, 2025
We could do this. However, if I remember correctly, newer versions of protobuf are more restrictive in terms of the compatibility of generated classes with the library. We might need to update it every time we update the protobuf dependency. We could also mix both strategies. The generated files stay checked into the repository, but we provide the manual Maven goal to easily regenerate them if we update the dependency.
Maybe? I haven't done any benchmarks as the focus was purely on dependency management. Our current dependency won't be updated any longer, so we'll need to switch either way 🤷 |
otbutz commentedAug 28, 2025
@karussell the generated classes are now in the repository and can be recreated with the mvn compile -P protobuf |
otbutz commentedOct 9, 2025
@karussell any chance to get this merged for the v11 release? |
karussell commentedOct 10, 2025
Unfortunately no. This is too tricky and also not fully tested (I think) for the parts that were replaced. |
otbutz commentedDec 17, 2025
@karussell feel free to give it a spin 😉 |
Uh oh!
There was an error while loading.Please reload this page.
Fixes#3083
VectorTileandGtfsRealtimecan be generated by protobuf-maven-plugin using theprotobufMaven profile