Hello - Thanks in advance for any light you can shed on this issue.

I've encountered an issue pulling down node metadata from Nominatim:

  1. Node exists -> https://www.openstreetmap.org/node/1984103891
  2. Node metadata exists -> https://www.openstreetmap.org/api/0.6/node/1984103891
  3. Place exists in Nominatim, referencing the node: https://nominatim.openstreetmap.org/lookup?place_id=20053249
  4. BUT nothing returned from a node lookup Nominatim ->https://nominatim.openstreetmap.org/lookup?osm_ids=N1984103891

What am I doing missing here?

Thanks again!

asked 01 Nov '18, 12:54

tlsfm's gravatar image

accept rate: 0%

With (3) the URL actually returns to an empty result.

Nominatim links place nodes and relations together when they represent the same. It looks at relation role admin_centre. In this case it gets linked to https://nominatim.openstreetmap.org/details.php?osmtype=R&osmid=5996511&class=boundary On the small map you can see the center point is not the geographical center of the polygon but the coordinate of the linked node.

The /lookup endpoint doesn't seem to follow the link when querying by OSM type and OSM id. Or maybe it shouldn't because it would then return another OSM object (the relation).

permanent link

answered 01 Nov '18, 13:30

mtmail's gravatar image

accept rate: 30%


I'd definitely call this a bug. Please report it on https://github.com/openstreetmap/Nominatim/issues

(01 Nov '18, 13:33) lonvia

Thanks for the quick responses.

I'm still a little lost about why XML is missing in Nominatim... bear with me ....

So, I want the metadata for this node (Kyaukpyu)


In OSM this defined as the admin centre of both Kyaukpyu District and Kyaukpyu Township. Might this be a problem?

(01 Nov '18, 14:16) tlsfm

Nominatim has the full data of the node in its database. It's a bug if no result is returned for a direct /lookup query.

(01 Nov '18, 14:21) mtmail

OK, thanks @mtmail @lonvia... over to the issue queue I go.

(01 Nov '18, 14:27) tlsfm
(01 Nov '18, 14:47) tlsfm
Your answer
toggle preview

Follow this question

By Email:

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



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:


question asked: 01 Nov '18, 12:54

question was seen: 1,067 times

last updated: 01 Nov '18, 14:47

powered by OSQA