Skip to content

Revise HTTP status code 400 Bad Request for OSRM service soft-errors (e.g. NoRoute) #1968

@fab-girard

Description

@fab-girard

Hello,
I'm facing a strange behavior with viaroute...
This query:
http://router.project-osrm.org/viaroute?loc=49.1716783,-0.34655726&loc=49.17131276,-0.34673758
returns {"status":400,"status_message":"No route found between points"}
(some other similar requests returns also {"status":400,"status_message":"Bad request"})

I guess it should be:
{"status":207,"status_message":"Impossible route between points"}

Another thing: with http://map.project-osrm.org/ when I tried to route these 2 points, it doesn't work too... but if I move the points on a connected road around, and move again the points on the original position, a route is found! This seems to be caused by hint parameter.

Fab

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions