Avoid stop on a motorway (or motoway link)

Hello everyone,

I started playing with GraphHopper API and I’m quite happy with the result.
There is something that bother me though and I couldn’t find a way to “fix” it.

Here is my use case:

  1. I have to send teams to check fields.
  2. I would like to optimize the route
  3. I create a list of points that are in the middle of the fields I need to check
  4. I send this list of points to the Route Optimization API to know which vehicle would be best and in what order the fields should be checked

I works just fine but some of my points (in the field) snap on the closest motorway (or motorway link) and in real life, of course, I can’t stop in the middle of the motorway to go check the field nearby.

Is there a way to tell the API that it can use motorway but can’t stop on a motorway ?

Thanks a lot !

Keep on the good work :tada:

Hi,

Thanks for your kind words.

Currently there is no explicit fix for this, although this might make 100% sense to introduce such a limitation for the street snapping.

Can you have a look if the street_hint already helps you to fix this?

1 Like

Awesome !

I saw the street_hint but didn’t understand that it could indeed “fix” my issue !
The article is perfect :ok_hand:

1 Like

This might be interesting for you: New Feature: Avoid snapping to motorways