forked from hans/Nominatim
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user