I want to avoid a few points when routing. I learned I can convert these points into polygons to then avoid that area in the api, but this fully avoids that area no matter what. I want to preferably avoid these areas, but if it means taking a long detour then going through is fine. More specifically, I have a list of toll stations and I am trying to avoid them when the detour is not too long. Because toll stations are everywhere, there often aren’t any paths that don’t go through one and with my current API implementation it doesn’t find any route in this scenario. Thanks.
Hey,
this is not something that is possible with openrouteservice out of the box.
I will talk about “points” when I really mean “polygons that cover the point and that you use as avoid areas”, I’m sure you can follow.
You can of course add the points one after the other and check the effect it has on your route, keeping them added if you deem the detour “okay” and not adding them if it has too much of an effect.
Best regards