-
Notifications
You must be signed in to change notification settings - Fork 516
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Nominatim] Municipality not in list of 'localityFields' #1155
Comments
Hello @uwbas , |
Done: #1156 |
jbelien
changed the title
Municipality not in list of 'localityFields'
[Nominatim] Municipality not in list of 'localityFields'
May 28, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I came across some reverse geocoding results where Nominatim.php didn't return a 'locality'. In my opinion, this latlng query should have 'Purmerend' as its locality, as it's the municipal boundary:
https://nominatim.openstreetmap.org/ui/reverse.html?lat=52.50741&lon=4.93279&zoom=18
https://nominatim.openstreetmap.org/ui/details.html?osmtype=W&osmid=6593763&class=highway
Upon debugging, I noticed that inside jsonResultToLocation(), on line 209, 'municipality' was not considered a 'locality'.
$localityFields = ['city', 'town', 'village', 'hamlet'];
Is this a matter of definition?
Adding 'municipality' fixes my issue:
$localityFields = ['city', 'town', 'village', 'hamlet', 'municipality'];
The text was updated successfully, but these errors were encountered: