geocoder-php / Geocoder

The most featured Geocoder library written in PHP.
https://geocoder-php.org
MIT License
3.94k stars 517 forks source link

[LocationIQ] Normalize City #1038

Closed jbelien closed 4 years ago

jbelien commented 4 years ago

Add normalizecity parameter in the request to make sure there is a city property in the response. See https://locationiq.com/docs-html/index.html#locationiq-specific-parameters

Close #1037

jbelien commented 4 years ago

@pixrr Could you confirm this fixes your "issue" ?

pixrr commented 4 years ago

@pixrr Could you confirm this fixes your "issue" ?

Yes, it seems good :+1:

Edit 2: It does not seem to work with the xml format :thinking: I refer this to the issue #1037

jbelien commented 4 years ago

Edit 2: It does not seem to work with the xml format 🤔

Good catch! They mention it somehow in the documentation:

This version (v1) of our Search API is compatible with OpenStreetMap's Nominatim Geocoder in both JSON & XML formats. However, all our enhancements such as additional datasets and algorithms are supported only in json or xmlv1.1 format options.