-
Notifications
You must be signed in to change notification settings - Fork 16
Description
@migurski just moving this thread over from sharedstreets/sharedstreets-ref-system#16 From the ticket:
So the SharedStreets tiles use length delimited encoding (the technique $GOOG recommends for files over ~1mb to allow stream processing of data). Turns out the Python Protobuf library doesn't have helper functions to parse these messages, but I found this example on how do to it:
https://www.datadoghq.com/blog/engineering/protobuf-parsing-in-python/
Just posted a quick example here using your compiled version of the .proto file:
https://github.com/sharedstreets/sharedstreets-python/blob/master/test.py
Let's use your example code as starting point for building tile loading functionality in the python lib.
Also @DenisCarriere want to create a punch list based on the core functionality from the JS lib so we can try and keep parity in the python version?