geocoder-php / Geocoder

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

[Nominatim] Neighbourhood field #1167

Closed Jeremylepr closed 1 year ago

Jeremylepr commented 1 year ago

Some addresses have a "neighbourhood" field, for example :

https://nominatim.openstreetmap.org/reverse?format=xml&lat=35.685939&lon=139.811695&zoom=18&addressdetails=1

In jsonResultToLocation(), this field is not processed, so we can't get that value through the reverseQuery() method.

jbelien commented 1 year ago

Hello @Jeremylepr,

Thanks for the idea. It should be relatively easy to implement, could you create a PR ?