X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/3b6c2c9155ada3706c9095efc51fcd4213141b4f..c611d49941e8a097116dfb6f6d08e5491a85dcee:/sql/functions/aux_property.sql diff --git a/sql/functions/aux_property.sql b/sql/functions/aux_property.sql index 841f240a..6dd99eb2 100644 --- a/sql/functions/aux_property.sql +++ b/sql/functions/aux_property.sql @@ -23,13 +23,13 @@ BEGIN address_street_word_ids := word_ids_from_name(in_street); IF address_street_word_ids IS NOT NULL THEN - out_parent_place_id := getNearestNamedRoadFeature(out_partition, place_centroid, + out_parent_place_id := getNearestNamedRoadPlaceId(out_partition, place_centroid, address_street_word_ids); END IF; IF out_parent_place_id IS NULL THEN - FOR location IN SELECT place_id FROM getNearestRoadFeature(out_partition, place_centroid) LOOP - out_parent_place_id := location.place_id; + SELECT getNearestRoadPlaceId(out_partition, place_centroid) + INTO out_parent_place_id; END LOOP; END IF;