hello.

i am trying to do a lookup for Carolina, PR using parameters for structured requests:

https://nominatim.openstreetmap.org/search?format=json&limit=1city=carolina&country=pr

However the lookup works only with US:

https://nominatim.openstreetmap.org/search?format=json&limit=1&city=carolina&country=us

According to wikipedia the ISO 3166-2 code for Puerto Rico is PR. I know it's an administrative part of the USA but shouldn't be the primary ISO 3166-2 code PR?

for certain countries it doesn't work at all:

https://nominatim.openstreetmap.org/search?format=json&limit=1&city=Punta+Caucedo&country=do

but works with freeform query:

https://nominatim.openstreetmap.org/search?format=json&limit=1&q=Punta+Caucedo%2C+do

asked 14 May, 11:42

minusf's gravatar image

minusf
11
accept rate: 0%

edited 14 May, 12:32

Quick test shows similar for Papeete (French Polynesia is another dual coded place FP & FR_FP). Some others no longer exist (eg, Isle of Man IM & GB-IOM).

(14 May, 12:03) SK53 ♦
Be the first one to answer this question!
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:

×2
×2
×1

question asked: 14 May, 11:42

question was seen: 87 times

last updated: 14 May, 12:32

powered by OSQA