From: Sarah Hoffmann Date: Mon, 28 Apr 2014 19:52:24 +0000 (+0200) Subject: fix addr:place lookup X-Git-Tag: v2.3.0~47 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/00768d321e270b928b230eb038abc746a416306a fix addr:place lookup --- diff --git a/sql/functions.sql b/sql/functions.sql index 6a465e0b..efacf521 100644 --- a/sql/functions.sql +++ b/sql/functions.sql @@ -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;