wrong parent place for no apparent reason #2711
-
We have a local installation of nominatim and we built a query that outputs the hierarchy for administrative boundaries that are stored in placex.parent_place_id / place_addressline. When we set it up, it produced correct results for our sample data (which was all administrative (sub) boundaries for Berlin, Germany), specifically the place with the osm id R55764 had the parent place with osm id R62422 (which is correct, thus, expected). However, since we installed nominatim a few updates were run and now R55764 apparently belongs to R1318337 (Bernau, which is distinctly outside of Berlin and has no overlap at all). We are very confused about how that could happen and are wondering, if there's a way to "fix" that without a complete reinstall, those are very inconvenient ... and we would have to do those regularly. (in case it's relevant: obviously, we don't modify the data. we only import the changes from osm) nominatim response when we lookup R55764 the parent place should be Berlin, but it's Bernau instead ... Obivously, openstreetmap produces the correct results, which is the results we would like to get ... is there any known bug that could cause these inconsistencies? any advice on how to handle this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 13 replies
-
What data did you use for your original import? What data did you use when you applied the updates? What do the relations (and in particular the geometries) of 'Berlin' and 'Bernau' look like when you look at them in the details view? |
Beta Was this translation helpful? Give feedback.
-
I suspect that this is another manifestation of #2635. Friedrichshain-Kreuzberg has a couple of |
Beta Was this translation helpful? Give feedback.
I suspect that this is another manifestation of #2635. Friedrichshain-Kreuzberg has a couple of
is_in:*
tags that range from useless to outright wrong. Ironically, it is one of the more correct ones that trips Nominatim.is_in:city=Berlin
gets a partial match on 'Bernau bei Berlin' and that's how Bernau ends up in the address. (Clearly a bug as there is a city 'Berlin' that is closer.)