<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
</head><body style="">
<div>
Hi,
</div>
<div>
</div>
<div>
while routing works great in the past, now i am facing
</div>
<div>
an issue, the routes are created with invalid coordinates (OSRM plugin)
</div>
<div>
</div>
<div>
debugging the OSRM routing plugin shows me,
</div>
<div>
that the coordinate value has one more digit.
</div>
<div>
for example, latitude is set to 48143403
</div>
<div>
</div>
<div>
because of this, following code will fail:
</div>
<div>
<span style="font-family: Consolas; font-size: small;"><span style="font-family: Consolas; font-size: small;"><span style="font-family: Consolas; font-size: small;"></span></span></span>
<p>lineString->append( GeoDataCoordinates(<span style="font-family: Consolas; color: #0000ff; font-size: small;"><span style="font-family: Consolas; color: #0000ff; font-size: small;"><span style="font-family: Consolas; color: #0000ff; font-size: small;">double</span></span></span><span style="font-family: Consolas; font-size: small;">( coordinates[1] ) / 1E5,<br/></span><span style="font-family: Consolas; color: #0000ff; font-size: small;"><span style="font-family: Consolas; color: #0000ff; font-size: small;"><span style="font-family: Consolas; color: #0000ff; font-size: small;">double</span></span></span><span style="font-family: Consolas; font-size: small;">( coordinates[0] ) / 1E5,</span>0.0, GeoDataCoordinates::Degree ) );<br/><br/>i changed it to <strong>/ 1E6</strong> , now all works like before.</p>
<p>does any one know if 8 digit is a general change by the OSRM service?<br/>or is it possible, that we get sometimes 7, sometimes 8 digits for the values?</p>
<p>br, konrad</p>
</div>
<div>
</div>
<div>
</div>
</body></html>