pypolyline icon indicating copy to clipboard operation
pypolyline copied to clipboard

decode to lon,lat?

Open paro- opened this issue 6 months ago • 2 comments

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

paro- avatar Aug 06 '24 07:08 paro-