Improvement of new avoided object

I want to know which should be the best procedure to avoid some types of roads or some types of obstacle presence in the path.

I start to use the openrouteservice-py to create routing and considering as example that I don’t want to use streets that are tagged as primary (highway=primary) in OpenStreetMap. I was thinking to use the option avoid_polygons and download the data from OSM, should be this the best way or there are others more efficient?


1 Like

the best way of implementing this would be to put into the Java backed in a similar fashion to the existing filter for avoiding certain road features. I don’t think there is currently a sane way of doing this at ORS API level.


Thanks @andrzej for the reply and also the link to the code!