Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

decode to lon,lat? #69

Open
paro- opened this issue Aug 6, 2024 · 2 comments
Open

decode to lon,lat? #69

paro- opened this issue Aug 6, 2024 · 2 comments

Comments

@paro-
Copy link

paro- commented Aug 6, 2024

Hi,

My objective is to decode this polyline, which comes from Valhalla, to lat,lon coordinates.

import polyline
polyline.decode(poly, 6)

gives me the expected result, but:

from pypolyline.cutil import decode_polyline
decode_polyline(str.encode(poly), 6)

yields a lon,lat result, that I then I have to reverse.

Am I missing something?

Best regards,
Paul

@urschrei
Copy link
Owner

urschrei commented Aug 6, 2024

This library uses lon, lat order, as noted in the README. There's no option to swap it.

@paro-
Copy link
Author

paro- commented Aug 6, 2024

Okay, thanks, my bad I was going with the cutil.pyx function comments.

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

No branches or pull requests

2 participants