geocoder
geocoder copied to clipboard
LocationIQ URL changed
In the default configuration, the geocoder for LocationIQ is broken:
>>> response = geocoder.locationiq("a_query", key="pk.some_valid_key")
Status code 403 from https://locationiq.org/v1/search.php: ERROR - 403 Client Error: Forbidden
for url: https://locationiq.org/v1/search.php?key=pk.some_valid_key&q=a_query
According to the API docs, there are two URLs now:
- 🇺🇸
https://us1.locationiq.org/v1/search.php - 🇪🇺
https://eu1.locationiq.org/v1/search.php
Same is true for /reverse.php.
I see one can pass the url in the params which is awesome!
I don’t know how you would like to parametrize the region for this provider… :thinking: