From eda837a9e5dae51fbe39fbbde3c7f415af5b2a1c Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Mon, 11 Jul 2016 23:29:45 +0200 Subject: [PATCH] hide address parts that are linked place nodes Quick and very dirty fix for github issue #483. --- sql/functions.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5