<div dir="ltr"><div><div>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.<br><br></div>Regards,<br></div>Sander<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-12-17 18:14 GMT+01:00 Bjorn Madsen <span dir="ltr"><<a href="mailto:bm@multiagenttechnology.com" target="_blank">bm@multiagenttechnology.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi - I'm wondering what the better option is to get the polyline out as list of latlons<div><br></div><div>As example I'm using:</div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>waypoints = [(51.460982, -2.588994), (53.348429, -6.255323)]</div></blockquote><div><div><br></div><div>which gives this long polyline <a href="http://pastebin.com/dhMZ2Nqb" target="_blank">http://pastebin.com/dhMZ2Nqb</a></div><div><br></div><div>However, when I decode it, I get (the first 5 records only)</div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><div>0000 = {tuple} (514.60953, -25.88957)</div><div>0001 = {tuple} (514.61061, -25.88728)</div><div>0002 = {tuple} (514.60382, -25.88428)</div><div>0003 = {tuple} (514.59867, -25.88208)</div><div>0004 = {tuple} (514.59651, -25.88124)</div></div></div></blockquote><div><div><br></div><div>Any idea to what I'm doing wrong? Has the encoding changed from: <a href="http://code.google.com/apis/maps/documentation/polylinealgorithm.html" target="_blank">http://code.google.com/apis/maps/documentation/polylinealgorithm.html</a></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div>
</div></div>
<br>_______________________________________________<br>
OSRM-talk mailing list<br>
<a href="mailto:OSRM-talk@openstreetmap.org">OSRM-talk@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/osrm-talk" rel="noreferrer" target="_blank">https://lists.openstreetmap.org/listinfo/osrm-talk</a><br>
<br></blockquote></div><br></div>