Is linked_places always (for cities, towns and villages relations) the node representing the city (or at list the point where the name is displayed on the map) ? #3337
-
Hi, I woundering what is a linked place ? the only thing that i found online is this page : Details - Nominatim 4.3.2 Manual, but I not sure to understand it well. I have a database with user-given city name and zipcode (in France and Swizerland) and I asociated them with an OSM relation. I want to associate them to an OSM node also and so I look at the members of the relation and I take the one with the "admin_centre" role but many of them (almost only swiss ones) doesn't have it. Using Nominatim, some of this cities have a linked_place, is it always (for cities, towns and villages) the node representing the city (or at list the point where the name is displayed on the map) ? Exemple of relations with a linked place but no admin center : Bonus question: linked_places seems to be unidirectional (a relation is linked to a node but the node isn't linked to it), why is it like that ? Thanks ! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The linked place is the place node that most likely represents the same place as the boundary relation. So it is kind of what you are looking for. Nominatim uses some heuristics to determine the place. They use the wikidata tag, name, place type. If you are interested in the details, the code is here. The
There is an index on the column that allows a lookup in the opposite direction. No need to duplicate the information.
It is simply the geometric center of the boundary. |
Beta Was this translation helpful? Give feedback.
The linked place is the place node that most likely represents the same place as the boundary relation. So it is kind of what you are looking for. Nominatim uses some heuristics to determine the place. They use the wikidata tag, name, place type. If you are interested in the details, the code is here. The
admin_center
role is not really suitable as it usually points to the capital of the boundary which is not always the same thing. Thelabel
role is a more reliable candidate but also used relatively rarely.There is an index on the column that …