]> git.openstreetmap.org Git - nominatim.git/commitdiff
fix addr:place lookup
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 28 Apr 2014 19:52:24 +0000 (21:52 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 28 Apr 2014 19:52:24 +0000 (21:52 +0200)
sql/functions.sql

index 6a465e0b8735e0bd325c0c049384d7734daeb3f1..efacf521e72401bd48f9f8bd7a34bc9da54174d6 100644 (file)
@@ -1529,7 +1529,7 @@ BEGIN
       END IF;
 
       IF NEW.parent_place_id IS NULL AND NEW.addr_place IS NOT NULL THEN
-        address_street_word_ids := get_name_id(make_standard_name(NEW.addr_place));
+        address_street_word_ids := get_name_ids(make_standard_name(NEW.addr_place));
         IF address_street_word_ids IS NOT NULL THEN
           FOR location IN SELECT * from getNearestNamedPlaceFeature(NEW.partition, place_centroid, address_street_word_ids) LOOP
             NEW.parent_place_id := location.place_id;