Nominatim
Nominatim copied to clipboard
Linked place names need to include the default language
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.
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.