Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Getting response "The provided parameter 'exclude=CZE' is unknown." #30

@akarh

Description

@akarh

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.

I got the parameter specification from here (v8): https://developer.here.com/documentation/routing-api/dev_guide/topics/use-cases/exclude-countries.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions