-
Hi I have setup a Photon instance for a city autocomplete feature. It works pretty well, but Berlin is missing from results lists. I can find Berlin on photon.komoot.io instance, with osm_id 240109189: https://photon.komoot.io/reverse?limit=1&lat=52&lon=13&radius=100&query_string_filter=osm_id:240109189 If I start a Photon instance with index available on GraphHopper, I also see the same document. However, when building Photon index from my own Nominatim instance, this document is not in Elastic index (confirmed by direct ES query on port 9200). I looked at Photon import code, it basically performs this query to grab list of documents to index:
The thing is, in my Nominatim DB, osm_id 240109189 is actually linked to another place:
So now, I know why Berlin is missing (linked_place_id not NULL). Here is what I tried on nominatim import side, without success:
Example of command I ran:
The only test that worked was to import an old PBF file from January 2021 (available on Geofabrik). I assume that link between these places has been established in OSM somewhere during 2021. Any hints on how I could sort this out? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Linking of boundaries and place nodes that describe the same place is a basic functionality and cannot be turned off. It is necessary for address computation and avoids result duplication. The reason that you sometimes get the node not linked is that the mapping is rather volatile. The important question is: why do you need to get specifically the node? Why is the combined boundary/node result not sufficient? |
Beta Was this translation helpful? Give feedback.
Linking of boundaries and place nodes that describe the same place is a basic functionality and cannot be turned off. It is necessary for address computation and avoids result duplication. The reason that you sometimes get the node not linked is that the mapping is rather volatile.
The important question is: why do you need to get specifically the node? Why is the combined boundary/node result not sufficient?