mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-14 18:37:58 +00:00
for roads add all intersecting boundaries to address list
When roads cross boundaries, both administrative entities should be added to the address list, so that both entities can be used for searching. Also allows in a second step to better sort out addresses of POIs on such roads. Fixes #121.
This commit is contained in:
@@ -1679,7 +1679,12 @@ BEGIN
|
||||
-- added ourself as address already
|
||||
address_havelevel[NEW.rank_address] := true;
|
||||
-- RAISE WARNING ' getNearFeatures(%,''%'',%,''%'')',NEW.partition, place_centroid, search_maxrank, isin_tokens;
|
||||
FOR location IN SELECT * from getNearFeatures(NEW.partition, place_centroid, search_maxrank, isin_tokens) LOOP
|
||||
FOR location IN
|
||||
SELECT * from getNearFeatures(NEW.partition,
|
||||
CASE WHEN NEW.rank_search >= 26 THEN NEW.geometry
|
||||
ELSE place_centroid END,
|
||||
search_maxrank, isin_tokens)
|
||||
LOOP
|
||||
|
||||
--RAISE WARNING ' AREA: %',location;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user