add support for place=square

Squares are now addressable (on address level 25) and thus can
be attached to a house number via addr:place. Needed to increase
the rank range for matching up addr:place to 25.
This commit is contained in:
Sarah Hoffmann
2020-08-26 12:12:52 +02:00
parent 13dba94307
commit be6ecc388c
3 changed files with 22 additions and 1 deletions

View File

@@ -160,7 +160,7 @@ BEGIN
FROM search_name_-partition-
WHERE name_vector && isin_token
AND centroid && ST_Expand(point, 0.04)
AND search_rank between 16 and 22
AND search_rank between 16 and 25
ORDER BY ST_Distance(centroid, point) ASC limit 1;
RETURN parent;
END IF;