Fresh install of both Project-OSRM and Project-OSRM-Web (independently, not through the Git subrepo) on Ubuntu, Nginx, etc. Everything works as documented except that when attempting to route, the route displays wrongly (shown as a horizontal line in Antaractica). The text description of the route is fine. All the elements of the array returned by _decode() are 10 times too big (1453.62 instead of 145.362).
I add this line to WebContent/routing/OSRM.RoutingGeometry.js _decode(), just before "return array;":
for (i=0; i< array.length;i++) { array[i][0] /= 10.0; array[i][1] /= 10.0; }
With that, everything works perfectly.
Fresh install of both Project-OSRM and Project-OSRM-Web (independently, not through the Git subrepo) on Ubuntu, Nginx, etc. Everything works as documented except that when attempting to route, the route displays wrongly (shown as a horizontal line in Antaractica). The text description of the route is fine. All the elements of the array returned by _decode() are 10 times too big (1453.62 instead of 145.362).
I add this line to WebContent/routing/OSRM.RoutingGeometry.js _decode(), just before "return array;":
With that, everything works perfectly.