NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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%


(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

permanent link

answered 15 Feb '18, 00:37

mtmail's gravatar image

mtmail
4.8k1574
accept rate: 27%

edited 15 Feb '18, 00:38

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×689

question asked: 15 Feb '18, 00:00

question was seen: 1,376 times

last updated: 15 Feb '18, 00:38

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum