Skip to content

results from demo server front end differ from API request #5950

Description

@vinnytwice

HI, I'm getting into building an OSRM server and I set up a bike route on the demo server
http://map.project-osrm.org/?z=17&center=44.501839%2C11.340401&loc=44.501839%2C11.341270&loc=44.501770%2C11.340219&loc=44.500255%2C11.338867&loc=44.500217%2C11.337966&loc=44.501143%2C11.335863&hl=en&alt=0&srv=1

Screen Shot 2021-02-01 at 20 54 29

but when I make a request from my app I get completely different results.
The green dotted polyline is the returned route from the api while the red polyline is the 5 coordinates I send with the request
'http://router.project-osrm.org/route/v1/bike/11.341211,44.501862;11.340225,44.501862;11.340225,44.501862;11.338931,44.500278;11.337891,44.500209;11.335789,44.501173?overview=false&geometries=geojson&steps=true&annotations=false'

145906771_759508324986860_1883622757152765959_n

so I tried making multiple requests sending just 2 waypoints per request and rebuilding the route but still is not the same result as from the demo server front end...

144722634_717248035848826_7578611594028690388_n

What are those differences due to? I need the API to return a route like the 1st picture from this set of coordinates when requesting a route. I'm getting the coordinates from the 'coordinates' parameter in routes/legs/steps/geometry/coordinates and building the poly line myself.. Am I getting the wrong set of coordinates??
Thank you from the help

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions