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

how to differentiate between ST.PETERSBURG in Russia and USA, I just want to use the name.

asked 21 Jul '16, 17:00

srikanth18's gravatar image

srikanth18
26112
accept rate: 0%

about which website/service/whatever is your question? What are you using and doing?

(21 Jul '16, 20:56) aseerel4c26 ♦

The response from Nominatim has the importance field - essentially the "bigger" the place, the higher it scores. The Russian Petersburg is rated higher than the others.

Also, if you're expecting results to come primarily from a specific area, you set the viewbox request field; or even set bounded=1 if you only want your results to come from the viewbox area.

As for detecting "which of the Petersburgs is where": you can check the coordinates, which is not very precise.

Alternatively, you can pass the request field addressdetails=1, which will give you a hierarchy - checking the address.country_code might be sufficient here.

See the documentation at http://wiki.openstreetmap.org/wiki/Nominatim for more options.

permanent link

answered 21 Jul '16, 17:10

Piskvor's gravatar image

Piskvor
1.3k91535
accept rate: 37%

edited 21 Jul '16, 17:11

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:

×1

question asked: 21 Jul '16, 17:00

question was seen: 1,314 times

last updated: 21 Jul '16, 20:56

Related questions

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