]> git.openstreetmap.org Git - nominatim.git/commitdiff
add support for Irish townlands
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 20 Apr 2012 20:13:03 +0000 (22:13 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Fri, 20 Apr 2012 20:13:03 +0000 (22:13 +0200)
To work properly, osm2pgsql needs to be updated to the latest version.

sql/functions.sql

index 5c4e9f2d627fc473d4736634d54ecd0ea900bcd8..d10439dfc3e7e6863740603da47c733ecc3e0fc0 100644 (file)
@@ -1037,6 +1037,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;