From 496e1b0616e120f6100c5ea23b89195416761228 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Fri, 11 Apr 2014 22:27:17 +0200 Subject: [PATCH] give waterways an address but remove them from being part of an address --- sql/functions.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sql/functions.sql b/sql/functions.sql index d6a6090f..96e4d698 100644 --- a/sql/functions.sql +++ b/sql/functions.sql @@ -1117,7 +1117,8 @@ BEGIN ELSEIF NEW.class = 'waterway' AND NEW.name is NULL THEN RETURN NULL; ELSEIF NEW.class = 'waterway' THEN - NEW.rank_address := 17; + NEW.rank_search := 17; + NEW.rank_address := 0; ELSEIF NEW.class = 'highway' AND NEW.osm_type != 'N' AND NEW.type in ('service','cycleway','path','footway','steps','bridleway','motorway_link','primary_link','trunk_link','secondary_link','tertiary_link') THEN NEW.rank_search := 27; NEW.rank_address := NEW.rank_search; -- 2.39.5