From: Sarah Hoffmann Date: Mon, 11 Jul 2016 21:29:45 +0000 (+0200) Subject: hide address parts that are linked place nodes X-Git-Tag: deploy~428 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/eda837a9e5dae51fbe39fbbde3c7f415af5b2a1c hide address parts that are linked place nodes Quick and very dirty fix for github issue #483. --- diff --git a/sql/functions.sql b/sql/functions.sql index 18e8bdbc..298f171a 100644 --- a/sql/functions.sql +++ b/sql/functions.sql @@ -2317,7 +2317,7 @@ BEGIN CASE WHEN class = 'place' and type = 'postcode' THEN hstore('name', postcode) ELSE name END as name, CASE WHEN extratags ? 'place' THEN 'place' ELSE class END as class, CASE WHEN extratags ? 'place' THEN extratags->'place' ELSE type END as type, - admin_level, fromarea, isaddress, + admin_level, fromarea, isaddress and linked_place_id is NULL as isaddress, CASE WHEN address_place_id = for_place_id AND rank_address = 0 THEN 100 WHEN rank_address = 11 THEN 5 ELSE rank_address END as rank_address, distance,calculated_country_code,postcode from place_addressline join placex on (address_place_id = placex.place_id)