[OSRM-talk] polyline usage?

Sander Deryckere sanderd17 at gmail.com
Thu Dec 17 17:23:42 UTC 2015


The algorithm is the same, but the precision in OSRM is higher, you should
call the polyline function with a precision of 6 digits instead of 5.

Regards,
Sander

2015-12-17 18:14 GMT+01:00 Bjorn Madsen <bm at multiagenttechnology.com>:

> Hi - I'm wondering what the better option is to get the polyline out as
> list of latlons
>
> As example I'm using:
>
> waypoints = [(51.460982, -2.588994), (53.348429, -6.255323)]
>
>
> which gives this long polyline http://pastebin.com/dhMZ2Nqb
>
> However, when I decode it, I get (the first 5 records only)
>
> 0000 = {tuple} (514.60953, -25.88957)
> 0001 = {tuple} (514.61061, -25.88728)
> 0002 = {tuple} (514.60382, -25.88428)
> 0003 = {tuple} (514.59867, -25.88208)
> 0004 = {tuple} (514.59651, -25.88124)
>
>
> Any idea to what I'm doing wrong? Has the encoding changed from:
> http://code.google.com/apis/maps/documentation/polylinealgorithm.html
>
>
>
>
>
>
> _______________________________________________
> OSRM-talk mailing list
> OSRM-talk at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osrm-talk/attachments/20151217/a2a94bcc/attachment.html>


More information about the OSRM-talk mailing list