Re: [OSRM-talk] Geometry Polyline Coordinates multiplied by 10

2015-10-05 Thread Patrick Niklaus
> Is it safe for me to simply divide the decoded coordinates by 10? Yes it is safe to do that. Polyline encodes arbitrary integers. Multiplication by a factor and rounding is the first step. Dividing by the factor is the last step. Sadly the python implementation hard-codes this factor. Might be

[OSRM-talk] Geometry Polyline Coordinates multiplied by 10

2015-10-04 Thread Bryan Coutts
I'm trying to use OSRM to supply routes as polylines. I've noticed that, when I use a standard decoder to decode these polylines (i.e. Python's polyline package), the lat/lon coordinates I get are multiplied by a factor of 10. Googling around, I found that this is due to OSRM producing coordinates