You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
@migurski this sounds great! and big +1 on the tile server with slippy preview. Having a CLI we can point at local tile directory would be fantastic.
I'm curious if we can leverage any of the the existing React UI (http://platform.sharedstreets.io/) to boostrap this. I'm about to flip the switch on the public repo of this. The extensible layer infrastructure still needs a lot of work but hopefully a good starting point.
Activity
migurski commentedon Feb 28, 2018
I tried out the test code, and it worked well. Should be possible to run with this.
DenisCarriere commentedon Mar 1, 2018
👍 Sounds good.
I'll try to build up the documentation to have both Python & Javascript sync up.
A few method names might need to change to follow the Python idioms.
Ex:
forwardReference=>forward_referenceShould we also divide the Python "core" library with the "pbf" parser (eventually writer).
sharedstreetssharedstreets-pbfmigurski commentedon Mar 1, 2018
I’d keep them together; there’s little benefit to prematurely carving up libraries just yet!
A few things I’d like to see in this library, that I’m willing to personally work on:
kpwebb commentedon Mar 1, 2018
@migurski this sounds great! and big +1 on the tile server with slippy preview. Having a CLI we can point at local tile directory would be fantastic.
I'm curious if we can leverage any of the the existing React UI (http://platform.sharedstreets.io/) to boostrap this. I'm about to flip the switch on the public repo of this. The extensible layer infrastructure still needs a lot of work but hopefully a good starting point.
migurski commentedon Mar 1, 2018
What would the local tile directory CLI do? Fill it up, or convert it out?
kpwebb commentedon Mar 1, 2018
I was thinking something like the node "serve" command to spin up a slippy map viewer for local files.