From: Sarah Hoffmann Date: Fri, 11 Apr 2014 20:27:17 +0000 (+0200) Subject: give waterways an address but remove them from being part of an address X-Git-Tag: v2.3.0~57 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/496e1b0616e120f6100c5ea23b89195416761228 give waterways an address but remove them from being part of an address --- 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;