]> git.openstreetmap.org Git - nominatim.git/blobdiff - sql/functions.sql
Do not swallow PEAR error.
[nominatim.git] / sql / functions.sql
index 7a68718ea9c517480b99aa2ffd1f59c4aea7f853..b248a46d104601337458832a17e35e20845dd702 100644 (file)
@@ -1042,6 +1042,10 @@ BEGIN
       ELSEIF NEW.type in ('farm','locality','islet','isolated_dwelling','mountain_pass') THEN
         NEW.rank_search := 20;
         NEW.rank_address := 0;
+        -- Irish townlands, tagged as place=locality and locality=townland
+        IF (NEW.extratags -> 'locality') = 'townland' THEN
+          NEW.rank_address := 20;
+        END IF;
       ELSEIF NEW.type in ('hall_of_residence','neighbourhood','housing_estate','nature_reserve') THEN
         NEW.rank_search := 22;
         NEW.rank_address := 22;