Skip to content
This repository has been archived by the owner on Mar 1, 2021. It is now read-only.

polyline encoding samples #129

Open
kevinkreiser opened this issue Nov 29, 2016 · 1 comment
Open

polyline encoding samples #129

kevinkreiser opened this issue Nov 29, 2016 · 1 comment

Comments

@kevinkreiser
Copy link
Member

we need a corollary to: https://github.com/valhalla/valhalla-docs/blob/master/decoding.md in which we share sample code to generate an encoded polyline that valhalla will accept. there are off the shelf ones but they may not allow for 6 digits of precision or they may swap lat and lon. its best to just show the example ourselves:

for starters heres the c++11 version: https://github.com/valhalla/midgard/blob/6a74643fed445588a2997d37132370bf3e456991/valhalla/midgard/encoded.h#L81-L119

we can do python and js as well.

@rmglennon
Copy link
Collaborator

mentioned in here #151

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants