This is a static archive of our old OSM Help Site. Please post any new questions and answers at community.openstreetmap.org.

Nominatim returning wrong city names for Puerto Rico

0

I found a problem in a website using OSM for Puerto Rico. The websites uses the Nominatim reverse geolocation API and the API is returning the wrong CITY.

Puerto Rico is a Territory of the United States and the administrative boundaries seem ok to me. I checked the map against the documentation in this page:

https://wiki.openstreetmap.org/wiki/United_States_admin_level

For example:

https://nominatim.openstreetmap.org/reverse?format=json&addressdetails=1&limit=1&lat=18.438423379226933&lon=-67.14555680751802

asked 15 Feb '18, 00:00

ctkjose's gravatar image

ctkjose
11112
accept rate: 0%


One Answer:

1

(is there a question?)

Nominatim treats every admin_level=8 as city, admin_level=6 as county when it returns results. If that needs to change because of https://wiki.openstreetmap.org/wiki/United_States_admin_level then please add a feature request to https://github.com/openstreetmap/Nominatim/issues

answered 15 Feb '18, 00:37

mtmail's gravatar image

mtmail
4.8k1574
accept rate: 27%

edited 15 Feb '18, 00:38