Hello,
I am currently implementing a routing option where you can exclude a certain area which won`t be used for routing.
For this feature I use to avoid polygons options.
But sometimes when I draw a rectangle a part of the route is calculated in the polygon
Hi @NicolasT, can you post the request that is beign used itself as it looks like that is not the main openrouteservice web client so it is difficult to tell what is happening.
Hi @NicolasT,
the reason it is going through is because in the request some of the coordinateas are out of order for the polygon. You want to be writing them in a clockwise direction. In your example, the polygon being passed to avoid is: