From: Sarah Hoffmann Date: Fri, 20 Apr 2012 20:13:03 +0000 (+0200) Subject: add support for Irish townlands X-Git-Tag: v2.0.0~84 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/6522e531e4b45bc4a97be8853da6b6f6dc4a5c86 add support for Irish townlands To work properly, osm2pgsql needs to be updated to the latest version. --- diff --git a/sql/functions.sql b/sql/functions.sql index 5c4e9f2d..d10439df 100644 --- a/sql/functions.sql +++ b/sql/functions.sql @@ -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;