]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-sql/functions/address_lookup.sql
move get_addressdata() implementation to Python
[nominatim.git] / lib-sql / functions / address_lookup.sql
index 2bbfcd5c03c6296ff06191a00571c7b11f5da25a..5d2cb94d1c44214b1a7883e2e45a04ff01491f4f 100644 (file)
@@ -187,6 +187,7 @@ BEGIN
 
   -- --- Return the record for the base entry.
 
+  current_rank_address := 1000;
   FOR location IN
     SELECT placex.place_id, osm_type, osm_id, name,
            coalesce(extratags->'linked_place', extratags->'place') as place_type,