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:
Sarah Hoffmann
2022-05-02 09:48:51 +02:00
parent 8ebb8ee304
commit 372874e89a
2 changed files with 25 additions and 1 deletions

View File

@@ -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