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
{{ message }}
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.
First of all, thanks a lot for the tremendous work!
While playing around with the library, my requests were failing with HereAPI respnding with error mentioned in the title.
Digging a bit deeper it seems that the parameter for excluding countries is supposed to be exclude[countries]=CZE, not exclude=CZE as generated by here-location-services-python.
By manually changing line 194 in routing_api.py from params["exclude"] = ",".join(exclude) to params["exclude[countries]"] = ",".join(exclude) I am now getting the expected results.
First of all, thanks a lot for the tremendous work!
While playing around with the library, my requests were failing with HereAPI respnding with error mentioned in the title.
Digging a bit deeper it seems that the parameter for excluding countries is supposed to be
exclude[countries]=CZE
, notexclude=CZE
as generated by here-location-services-python.By manually changing line 194 in
routing_api.py
fromparams["exclude"] = ",".join(exclude)
toparams["exclude[countries]"] = ",".join(exclude)
I am now getting the expected results.I got the parameter specification from here (v8): https://developer.here.com/documentation/routing-api/dev_guide/topics/use-cases/exclude-countries.html
The text was updated successfully, but these errors were encountered: