Skip to content

RoutingGeometry (in OSRM-Web) points too big by a factor of 10. #719

@stevage

Description

@stevage

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions