GIScience / openrouteservice-py

:snake: The Python API to consume openrouteservice(s) painlessly!
https://openrouteservice.org
Apache License 2.0
397 stars 56 forks source link

Missing options argument from API #44

Closed Aaron-JE closed 3 years ago

Aaron-JE commented 4 years ago

Here's what I did

I have a working script to retrive ischrones. I want to avoid highways, so I added the option like this: params_iso = {"locations":[[8.681495,49.41461],[8.686507,49.41943]],"range":[300,200],"options":{"avoid_features":["highways"]}}

The locations being added later

Here's what I got

TypeError: isochrones() got an unexpected keyword argument 'options'---

Here's what I was expecting

For the option parameter to work like the api


Here's what I think could be improved

Adding the options argument

Aaron-JE commented 4 years ago

I send post request with the "options" parameter to avoid highways but it throws "unknown keyword" error. I think that functionality if missing, dont know if by desing or bugs

nilsnolde commented 4 years ago

You know about the "Edit" button for comments? The template is not for fun..

What options do you use? Without explicit examples we can't tell anything.

Aaron-JE commented 4 years ago

Sorry, didn't see it nor knew it