]> git.openstreetmap.org Git - nominatim.git/commitdiff
lower significance of postcodes in Singapure
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 11 Sep 2014 17:42:52 +0000 (19:42 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 11 Sep 2014 17:42:52 +0000 (19:42 +0200)
Postcodes with 6 digits designate delivery points, i.e. houses.

sql/functions.sql

index 2c415620a40cf5dfa70cd6fc62bae646ba970e57..e2bfbbbccf76b6bb29c16b140841e83dd76bbb68 100644 (file)
@@ -1018,6 +1018,13 @@ BEGIN
             NEW.rank_address := 5;
           END IF;
 
             NEW.rank_address := 5;
           END IF;
 
+        ELSEIF NEW.calculated_country_code = 'sg' THEN
+
+          IF NEW.postcode ~ '^([0-9]{6})$' THEN
+            NEW.rank_search := 25;
+            NEW.rank_address := 11;
+          END IF;
+
         ELSEIF NEW.calculated_country_code = 'de' THEN
 
           IF NEW.postcode ~ '^([0-9]{5})$' THEN
         ELSEIF NEW.calculated_country_code = 'de' THEN
 
           IF NEW.postcode ~ '^([0-9]{5})$' THEN