komoot / photon

an open source geocoder for openstreetmap data
Apache License 2.0
1.83k stars 278 forks source link

Take _place_name* keys into consideration on import #694

Closed lonvia closed 1 year ago

lonvia commented 1 year ago

In https://github.com/osm-search/Nominatim/pull/2637 Nominatim changed its behaviour how it handles names from linked place nodes. They no longer overwrite the name of a boundary they are linked to. Instead the names are added with the additional prefix _place_.

This PR adapts the import process to also look for these new _place_* name keys. As before, the name from a place node is preferred.