Skip to content

OSRM fails to find nearest point on a large number of roads #1018

@Fulviuus

Description

@Fulviuus

Hi, I have compiled and ran OSRM successfully, but the nearest API fails to snap on a large number of roads.
I have tried both the master and develop branch with the same result.
I have also tried multiple osm data sets, with the same behaviour.
I am now running an instance on http://hq.beestar.eu:5000 using the latest berlin extract from download.geofabrik.de, and for example, if you do:

http://hq.beestar.eu:5000/nearest?loc=52.487,13.42746
or
http://hq.beestar.eu:5000/nearest?loc=52.49298,13.45577

it returns 207 even though the coordinates land on two major roads (Sonnenallee and Am Treptower PK)

Other roads, for example: http://hq.beestar.eu:5000/nearest?loc=52.48716,13.43232 work fine.

I am running Ubuntu 14.04, and the only modification I had to do to your building instructions on the wiki was to install libprotobuf8 instead of libprotobuf7 because that package is not available anymore.

Note: I have tried the roads that return 207 on http://map.project-osrm.org and they snap just fine.

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