You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A belated answer:
I think the intended usage is that the metrics argument needs to be a list of strings to work correctly even if you only want to get the distance:
Here's what I did
Used following code:
and same without metrics parameter.
Tried on the API-Playground, it worked. Tried with the example code as python snippet from the API-Playground, that also worked.
Here's what I got
openrouteservice.exceptions.ApiError: 400 ({'error': {'code': 6003, 'message': "Parameter 'metrics' has incorrect value or format."}, 'info': {'engine': {'build_date': '2023-06-16T03:06:42Z', 'version': '7.1.0'}, 'timestamp': 1687986526446}})
Here's what I was expecting
Should get a working response, as using metrics-parameter works on normal REST-API calls (API-Playground/python example code)
Here's what I think could be improved
Looked at the code of this package, especially at the distance_matrix.py. Couldn't figure out the problem. I'm sorry.
The text was updated successfully, but these errors were encountered: