Options avoid highway and tollway

Morning! I was wondering is there is any way to make isochrones which avoids highways and tollways. Itd be nice also to know if one can retreive the rest of the “options” tag from the api
Thanks!

Hi @Aaron-JE,

our API supports the same options for isochrones as for directions.
If you can’t pass an options object to isochrones thats a problem with openrouteservice-py.
Would you mind opening an issue in the github repository?

Best regards

I am not able to use the avoid features.

Piece of my code:

params = {
“locations”: [[yard_longitude, yard_latitude]],
“profile”: “driving-car”,
“range_type”: “time”,
“range”: ranges,
“attributes”: [“total_pop”],
“options”: {“avoid_features”: [“highways”, “tollways”]}
}
isochrone_result = client_openrouteservice.isochrones(**params)

I get the following error:
isochrones() got an unexpected keyword argument ‘options’

if I used avoid features instead of options then I get

isochrones() got an unexpected keyword argument ‘avoid_features’

Hey,

this is a known bug - you can add the fix manually to your version of openrouteservice-py or wait for the next release, which should happen soon.

Best regards