Nominatim icon indicating copy to clipboard operation
Nominatim copied to clipboard

Linked place names need to include the default language

Open lonvia opened this issue 2 years ago • 1 comments

If a place is linked to a boundary and has different names, these names are added to the boundary. However, Nominatim doesn't do the expansion to the default language of the country there.

Example: the boundary of Popayan gets linked to the town node. The boundary only has an ugly descriptive name while the node has the proper town name. English speakers get the _place_name:en while for Spanish speakers the name:es is preferred. From the _place_name, the additional _place_name:es (the default language of Colombia) needs to be inferred.

lonvia avatar May 19 '22 08:05 lonvia

See https://github.com/osm-search/Nominatim/blob/5751686fdce33f6b69a93dd1641ceacb2239791f/lib-sql/functions/placex_triggers.sql#L1034 to learn where local names are added. See https://github.com/osm-search/Nominatim/blob/5751686fdce33f6b69a93dd1641ceacb2239791f/lib-sql/functions/placex_triggers.sql#L91 for where the place names from the linked place are linked in.

lonvia avatar May 06 '23 14:05 lonvia