mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-14 18:37:58 +00:00
accept any OSM type in street member of associatedStreet
This is needed for pedestrian areas mapped as multipolygons and consequently as relations. The lookup in placex guarantees that the referenced OSM object is indeed a street. Fixes #2669.
This commit is contained in:
@@ -120,7 +120,8 @@ BEGIN
|
||||
IF location.members[i+1] = 'street' THEN
|
||||
FOR parent IN
|
||||
SELECT place_id from placex
|
||||
WHERE osm_type = 'W' and osm_id = substring(location.members[i],2)::bigint
|
||||
WHERE osm_type = upper(substring(location.members[i], 1, 1))
|
||||
and osm_id = substring(location.members[i], 2)::bigint
|
||||
and name is not null
|
||||
and rank_search between 26 and 27
|
||||
LOOP
|
||||
|
||||
Reference in New Issue
Block a user