+ Scenario: street member in associatedStreet relation can be a relation
+ Given the grid
+ | 1 | | | 2 |
+ | 3 | | | 4 |
+ | | | | |
+ | | 9 | | |
+ | 5 | | | 6 |
+ And the places
+ | osm | class | type | housenr | geometry |
+ | N9 | place | house | 34 | 9 |
+ And the named places
+ | osm | class | type | name | geometry |
+ | R14 | highway | pedestrian | Right St | (1,2,4,3,1) |
+ | W14 | highway | pedestrian | Left St | 5,6 |
+ And the relations
+ | id | members | tags+type |
+ | 1 | N9:house,R14:street | associatedStreet |
+ When importing
+ Then placex contains
+ | object | parent_place_id |
+ | N9 | R14 |
+
+
+ Scenario: Choose closest street in associatedStreet relation
+ Given the grid
+ | 1 | | | | 3 |
+ | 10 | | 11 | | 12 |
+ And the places
+ | osm | class | type | housenr | geometry |
+ | N1 | place | house | 1 | 1 |
+ | N3 | place | house | 3 | 3 |
+ And the named places
+ | osm | class | type | geometry |
+ | W100 | highway | residential | 10,11 |
+ | W101 | highway | residential | 11,12 |
+ And the relations
+ | id | members | tags+type |
+ | 1 | N1:house,N3:house,W100:street,W101:street | associatedStreet |
+ When importing
+ Then placex contains
+ | object | parent_place_id |
+ | N1 | W100 |
+ | N3 | W101 |
+
+