2 Feature: Update of address interpolations
3 Test the interpolated address are updated correctly
5 Scenario: addr:street added to interpolation
6 Given the scene parallel-road
8 | osm | class | type | housenr | geometry |
9 | N1 | place | house | 2 | :n-middle-w |
10 | N2 | place | house | 6 | :n-middle-e |
11 | W10 | place | houses | even | :w-middle |
13 | osm | class | type | name | geometry |
14 | W2 | highway | unclassified | Sun Way | :w-north |
15 | W3 | highway | unclassified | Cloud Street | :w-south |
18 | 10 | 1,100,101,102,2 |
21 | object | parent_place_id |
24 And W10 expands to interpolation
25 | parent_place_id | start | end |
28 | osm | class | type | housenr | street | geometry |
29 | W10 | place | houses | even | Cloud Street | :w-middle |
31 | object | parent_place_id |
34 And W10 expands to interpolation
35 | parent_place_id | start | end |
38 Scenario: addr:street added to housenumbers
39 Given the scene parallel-road
41 | osm | class | type | housenr | geometry |
42 | N1 | place | house | 2 | :n-middle-w |
43 | N2 | place | house | 6 | :n-middle-e |
44 | W10 | place | houses | even | :w-middle |
46 | osm | class | type | name | geometry |
47 | W2 | highway | unclassified | Sun Way | :w-north |
48 | W3 | highway | unclassified | Cloud Street | :w-south |
51 | 10 | 1,100,101,102,2 |
54 | object | parent_place_id |
57 And W10 expands to interpolation
58 | parent_place_id | start | end |
61 | osm | class | type | street | housenr | geometry |
62 | N1 | place | house | Cloud Street| 2 | :n-middle-w |
63 | N2 | place | house | Cloud Street| 6 | :n-middle-e |
65 | object | parent_place_id |
68 And W10 expands to interpolation
69 | parent_place_id | start | end |
72 Scenario: interpolation tag removed
73 Given the scene parallel-road
75 | osm | class | type | housenr | geometry |
76 | N1 | place | house | 2 | :n-middle-w |
77 | N2 | place | house | 6 | :n-middle-e |
78 | W10 | place | houses | even | :w-middle |
80 | osm | class | type | name | geometry |
81 | W2 | highway | unclassified | Sun Way | :w-north |
82 | W3 | highway | unclassified | Cloud Street | :w-south |
85 | 10 | 1,100,101,102,2 |
88 | object | parent_place_id |
91 And W10 expands to interpolation
92 | parent_place_id | start | end |
94 When marking for delete W10
95 Then W10 expands to no interpolation
97 | object | parent_place_id |
101 Scenario: referenced road added
102 Given the scene parallel-road
104 | osm | class | type | housenr | geometry |
105 | N1 | place | house | 2 | :n-middle-w |
106 | N2 | place | house | 6 | :n-middle-e |
108 | osm | class | type | housenr | street | geometry |
109 | W10 | place | houses | even | Cloud Street| :w-middle |
111 | osm | class | type | name | geometry |
112 | W2 | highway | unclassified | Sun Way | :w-north |
115 | 10 | 1,100,101,102,2 |
118 | object | parent_place_id |
121 And W10 expands to interpolation
122 | parent_place_id | start | end |
125 | osm | class | type | name | geometry |
126 | W3 | highway | unclassified | Cloud Street | :w-south |
128 | object | parent_place_id |
131 And W10 expands to interpolation
132 | parent_place_id | start | end |
135 Scenario: referenced road deleted
136 Given the scene parallel-road
138 | osm | class | type | housenr | geometry |
139 | N1 | place | house | 2 | :n-middle-w |
140 | N2 | place | house | 6 | :n-middle-e |
142 | osm | class | type | housenr | street | geometry |
143 | W10 | place | houses | even | Cloud Street| :w-middle |
145 | osm | class | type | name | geometry |
146 | W2 | highway | unclassified | Sun Way | :w-north |
147 | W3 | highway | unclassified | Cloud Street | :w-south |
150 | 10 | 1,100,101,102,2 |
153 | object | parent_place_id |
156 And W10 expands to interpolation
157 | parent_place_id | start | end |
159 When marking for delete W3
161 | object | parent_place_id |
164 And W10 expands to interpolation
165 | parent_place_id | start | end |
168 Scenario: building becomes interpolation
169 Given the scene building-with-parallel-streets
171 | osm | class | type | housenr | geometry |
172 | W1 | place | house | 3 | :w-building |
174 | osm | class | type | name | geometry |
175 | W2 | highway | unclassified | Cloud Street | :w-south |
178 | object | parent_place_id |
182 | 1 | 1,100,101,102,2 |
184 | osm | class | type | housenr | geometry |
185 | N1 | place | house | 2 | :n-north-w |
186 | N2 | place | house | 6 | :n-north-e |
188 | osm | class | type | housenr | street | geometry |
189 | W1 | place | houses | even | Cloud Street| :w-north |
190 Then placex has no entry for W1
191 And W1 expands to interpolation
192 | parent_place_id | start | end |
195 Scenario: interpolation becomes building
196 Given the scene building-with-parallel-streets
198 | osm | class | type | housenr | geometry |
199 | N1 | place | house | 2 | :n-north-w |
200 | N2 | place | house | 6 | :n-north-e |
202 | osm | class | type | name | geometry |
203 | W2 | highway | unclassified | Cloud Street | :w-south |
206 | 1 | 1,100,101,102,2 |
208 | osm | class | type | housenr | street | geometry |
209 | W1 | place | houses | even | Cloud Street| :w-north |
211 Then placex has no entry for W1
212 And W1 expands to interpolation
213 | parent_place_id | start | end |
216 | osm | class | type | housenr | geometry |
217 | W1 | place | house | 3 | :w-building |
219 | object | parent_place_id |
222 Scenario: housenumbers added to interpolation
223 Given the scene building-with-parallel-streets
225 | osm | class | type | name | geometry |
226 | W2 | highway | unclassified | Cloud Street | :w-south |
229 | 1 | 1,100,101,102,2 |
231 | osm | class | type | housenr | geometry |
232 | W1 | place | houses | even | :w-north |
234 Then W1 expands to no interpolation
236 | osm | class | type | housenr | geometry |
237 | N1 | place | house | 2 | :n-north-w |
238 | N2 | place | house | 6 | :n-north-e |
240 | osm | class | type | housenr | street | geometry |
241 | W1 | place | houses | even | Cloud Street| :w-north |
242 Then W1 expands to interpolation
243 | parent_place_id | start | end |