X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/3c0df661654432a34ad562f80fc0bc66cfb9de0c..abd294912abf844d054d5786dd80b7f1a2170a4d:/sql/functions.sql diff --git a/sql/functions.sql b/sql/functions.sql index 4e77e633..94a03231 100644 --- a/sql/functions.sql +++ b/sql/functions.sql @@ -853,6 +853,9 @@ BEGIN END IF; ELSEIF NEW.class = 'boundary' AND NOT is_area THEN return NULL; + ELSEIF NEW.class = 'boundary' AND NEW.type = 'administrative' + AND NEW.admin_level <= 4 AND NEW.osm_type = 'W' THEN + return NULL; ELSEIF NEW.class = 'railway' AND NEW.type in ('rail') THEN return NULL; ELSEIF NEW.osm_type = 'N' AND NEW.class = 'highway' THEN