Hello - Thanks in advance for any light you can shed on this issue. I've encountered an issue pulling down node metadata from Nominatim:
What am I doing missing here? Thanks again! |
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). 1
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) 1984103891 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
Tracking it here: https://github.com/openstreetmap/Nominatim/issues/1222
(01 Nov '18, 14:47)
tlsfm
|