Skip to content

Null distance and duration but route is exist #5788

@TeymurovFuad

Description

@TeymurovFuad

Could you explain please why do I get null for distances and durations

https://router.project-osrm.org/table/v1/driving/49.81755316257477,40.39497998078589;49.8177462816238,40.3949953014633?destinations=0&annotations=distance,duration

{ "code": "Ok", "distances": [ [ 0 ], [ null ] ], "durations": [ [ 0 ], [ null ] ], "sources": [ { "hint": "X2UjgP___38IAAAAOwAAAAAAAAAAAAAASVR7QUtutUIAAAAAAAAAAAgAAAA7AAAAAAAAAAAAAADOHAEAcij4AqRhaALRJ_gC5GBoAgAArwfGoB5W", "location": [ 49.817714, 40.395172 ], "name": "Tbilisi prospekti" }, { "hint": "X2UjgP___38PAAAAOwAAAAAAAAAAAAAAmhTlQa2Tm0IAAAAAAAAAAA8AAAA7AAAAAAAAAAAAAADOHAEA8ij4AmVhaAKSKPgC82BoAgAArwfGoB5W", "location": [ 49.817842, 40.395109 ], "name": "Tbilisi prospekti" } ], "destinations": [ { "hint": "X2UjgP___38IAAAAOwAAAAAAAAAAAAAASVR7QUtutUIAAAAAAAAAAAgAAAA7AAAAAAAAAAAAAADOHAEAcij4AqRhaALRJ_gC5GBoAgAArwfGoB5W", "location": [ 49.817714, 40.395172 ], "name": "Tbilisi prospekti" } ] }

According to documentaion it is ok if htere is no route was found, but actually there is route between this points

http://router.project-osrm.org/route/v1/driving/49.81755316257477,40.39497998078589;49.8177462816238,40.3949953014633?steps=true

{"code":"Ok","waypoints":[{"hint":"r1YjgP___38IAAAAOwAAAAAAAAAAAAAASVR7QUtutUIAAAAAAAAAAAgAAAA7AAAAAAAAAAAAAACoHAEAcij4AqRhaALRJ_gC5GBoAgAArwfka4u4","location":[49.817714,40.395172],"name":"Tbilisi prospekti"},{"hint":"r1YjgP___38PAAAAOwAAAAAAAAAAAAAAmhTlQa2Tm0IAAAAAAAAAAA8AAAA7AAAAAAAAAAAAAACoHAEA8ij4AmVhaAKSKPgC82BoAgAArwfka4u4","location":[49.817842,40.395109],"name":"Tbilisi prospekti"}],"routes":[{"legs":[{"steps":[{"intersections":[{"out":0,"entry":[true],"location":[49.817714,40.395172],"bearings":[123]}],"driving_side":"right","geometry":"ytpuFu_aoHJY","duration":0.7,"distance":12.9,"name":"Tbilisi prospekti","weight":0.7,"mode":"driving","maneuver":{"bearing_after":123,"location":[49.817714,40.395172],"type":"depart","bearing_before":0,"modifier":"right"}},{"intersections":[{"in":0,"entry":[true],"location":[49.817842,40.395109],"bearings":[303]}],"driving_side":"right","geometry":"mtpuFoaoH","duration":0,"distance":0,"name":"Tbilisi prospekti","weight":0,"mode":"driving","maneuver":{"bearing_after":0,"location":[49.817842,40.395109],"type":"arrive","bearing_before":123,"modifier":"right"}}],"weight":0.7,"distance":12.9,"summary":"Tbilisi prospekti","duration":0.7}],"weight_name":"routability","geometry":"ytpuFu_aoHJY","weight":0.7,"distance":12.9,"duration":0.7}]}`

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