Skip to content

Limit distance for snapping to nearest coordinate - use-case: small extract with frontend #816

@kaiwa

Description

@kaiwa

Hi,

i built osrm on my local machine and imported a small dataset of serbia for testing purposes as i didn't wanted to spend the time on importing a larger region.

I tested some routes in serbia and was courious what would be returned for routes which are outside of the data range. These are the (unexpected) results:

OK:

Hamburg, Germany -- München, Germany
/viaroute?alt=true&loc=53.553406,9.992196&loc=48.139126,11.580186
No Route found

OK:

Kassel, Germany -- Fulda, Germany
/viaroute?alt=true&loc=51.318928,9.496010&loc=50.553860,9.674339
No Route found

NOK?:

Augsburg, Germany -- Kitzingen, Germany (196 km)
/viaroute?alt=true&loc=48.365456,10.894768&loc=49.738094,10.155364
"total_distance": 50092
"total_time": 2852

NOK?:

Ochsenfurt, Germany -- Ulm, Germany (166 km)
/viaroute?alt=true&loc=49.664742,10.062271&loc=48.399624,9.996607
"total_distance": 49176
"total_time": 2923

NOK?:

Completely random Italia -- Switzerland (752 km)
/viaroute?alt=true&loc=46.553406,9.992196&loc=42.139126,11.580186
"total_distance": 336253
"total_time": 17577

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions