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

For a local installation of the OSM and Nominatim databases, is there a way to get the OSM IDs of the individual address fields returned by a Nominatim query?

For example, when two queries return the same city name, is there a way to determine whether or not this is in fact the same city, rather than two cities with the same name?

An SQL select statement or a short "how to do this in SQL" would be very much appreciated. Thanks.

asked 24 Apr '17, 20:41

maxmeier12's gravatar image

maxmeier12
11112
accept rate: 0%

edited 10 Jan '18, 19:48

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

details.php from nominatim seems to have code doing this:

http://nominatim.openstreetmap.org/details.php?place_id=158768940

(The "Address" section lists several Paris entries mapping to different OSM objects)

(24 Apr '17, 21:26) maxerickson

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
×55
×18

question asked: 24 Apr '17, 20:41

question was seen: 3,311 times

last updated: 10 Jan '18, 19:48

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