Route avoiding certains points (road blocks).

Hi. Im new here and could not find this in the documentation.

Is there a possibility to find a route excluding some (via-)points?

Think about road-blocks, etc.

So I want to go from A to B but NOT via C.

Thx in advance for help!

Yes, you can put polygons to avoid into the request. I use this myself too. User can add an obstacle on the route, either while following the route or when designing a route, and then ask router for a new route.

I believe the parameter for the routing request was called “areas”. It should be documented though, try to find it yourself first. I can look it up later today after work also.

Check this thread: Custom routing with areas to block road

Yes, thanks! Found it in the documentation. Going to implement it this way.

1 Like