We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Used following code:
client_ors = openrouteservice.Client(key='<KEY>') df_bus_stops_distances = client_ors.distance_matrix(llist_coords_bus_stops, metrics="distance")
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.
url: https://api.openrouteservice.org/v2/matrix/driving-car/json? Headers: { "headers": { "User-Agent": "ORSClientPython.v2.2.2", "Content-type": "application/json", "Authorization": "<KEY>" }, "timeout": 60, "json": { "locations": [ [ x, y ], [ x, y ], [ x, y ], [ x, y ], [ x, y ], [ x, y ], [ x, y ], [ x, y ], [ x, y ], [ x, y ] ], "profile": "driving-car", "metrics": "distance" } }
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}})
Should get a working response, as using metrics-parameter works on normal REST-API calls (API-Playground/python example code)
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:
No branches or pull requests
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: