Skip to content

Support custom nominatim url template #64

@pweibert

Description

@pweibert

Awesome package! I would like to use it with locationIQ. I can provide a custom URL template for the map tiles using this code:

mapConfiguration: MapConfiguration(
        urlTemplate:
            'https://{s}-tiles.locationiq.com/v3/streets/r/{z}/{x}/{y}.vector?key=<mykey>,
      )

But there seems to be no way to support the /search and /reverse urls of location iq since the require to the url to look like this: https://us1.locationiq.com/v1?key=...

I can add key via nominatimAdditionalQueryParameters but how to add the v1 part ?

When adding directly to the nominatimhost parameter I get the following exception: GeocodingException: Failed to reverse geocode: FormatException: Invalid character (at character 19)
us1.locationiq.com/v1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions