From: Sarah Hoffmann Date: Sat, 25 Apr 2020 22:18:29 +0000 (+0200) Subject: simplify display_name computation X-Git-Tag: v3.5.0~28^2 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/b8f01f91ca29186aef300d72f4dcf6327454c4e9?hp=-c simplify display_name computation --- b8f01f91ca29186aef300d72f4dcf6327454c4e9 diff --git a/sql/functions/address_lookup.sql b/sql/functions/address_lookup.sql index f8659c70..7885d0a9 100644 --- a/sql/functions/address_lookup.sql +++ b/sql/functions/address_lookup.sql @@ -69,7 +69,7 @@ BEGIN IF currresult != prevresult AND currresult IS NOT NULL AND result[(100 - location.rank_address)] IS NULL THEN - result[(100 - location.rank_address)] := trim(get_name_by_language(location.name, languagepref)); + result[(100 - location.rank_address)] := currresult; prevresult := currresult; END IF; END LOOP;