2 Feature: Update of address interpolations
3 Test the interpolated address are updated correctly
5 Scenario: new interpolation added to existing street
6 Given the scene parallel-road
8 | osm | class | type | name | geometry |
9 | W2 | highway | unclassified | Sun Way | :w-north |
10 | W3 | highway | unclassified | Cloud Street | :w-south |
13 | 10 | 1,100,101,102,2 |
15 Then W10 expands to no interpolation
17 | osm | class | type | housenr | geometry |
18 | N1 | place | house | 2 | :n-middle-w |
19 | N2 | place | house | 6 | :n-middle-e |
20 | W10 | place | houses | even | :w-middle |
22 | object | parent_place_id |
25 And W10 expands to interpolation
26 | parent_place_id | start | end |
29 Scenario: addr:street added to interpolation
30 Given the scene parallel-road
32 | osm | class | type | housenr | geometry |
33 | N1 | place | house | 2 | :n-middle-w |
34 | N2 | place | house | 6 | :n-middle-e |
35 | W10 | place | houses | even | :w-middle |
37 | osm | class | type | name | geometry |
38 | W2 | highway | unclassified | Sun Way | :w-north |
39 | W3 | highway | unclassified | Cloud Street | :w-south |
42 | 10 | 1,100,101,102,2 |
45 | object | parent_place_id |
48 And W10 expands to interpolation
49 | parent_place_id | start | end |
52 | osm | class | type | housenr | street | geometry |
53 | W10 | place | houses | even | Cloud Street | :w-middle |
55 | object | parent_place_id |
58 And W10 expands to interpolation
59 | parent_place_id | start | end |
62 Scenario: addr:street added to housenumbers
63 Given the scene parallel-road
65 | osm | class | type | housenr | geometry |
66 | N1 | place | house | 2 | :n-middle-w |
67 | N2 | place | house | 6 | :n-middle-e |
68 | W10 | place | houses | even | :w-middle |
70 | osm | class | type | name | geometry |
71 | W2 | highway | unclassified | Sun Way | :w-north |
72 | W3 | highway | unclassified | Cloud Street | :w-south |
75 | 10 | 1,100,101,102,2 |
78 | object | parent_place_id |
81 And W10 expands to interpolation
82 | parent_place_id | start | end |
85 | osm | class | type | street | housenr | geometry |
86 | N1 | place | house | Cloud Street| 2 | :n-middle-w |
87 | N2 | place | house | Cloud Street| 6 | :n-middle-e |
89 | object | parent_place_id |
92 And W10 expands to interpolation
93 | parent_place_id | start | end |
96 Scenario: interpolation tag removed
97 Given the scene parallel-road
99 | osm | class | type | housenr | geometry |
100 | N1 | place | house | 2 | :n-middle-w |
101 | N2 | place | house | 6 | :n-middle-e |
102 | W10 | place | houses | even | :w-middle |
104 | osm | class | type | name | geometry |
105 | W2 | highway | unclassified | Sun Way | :w-north |
106 | W3 | highway | unclassified | Cloud Street | :w-south |
109 | 10 | 1,100,101,102,2 |
112 | object | parent_place_id |
115 And W10 expands to interpolation
116 | parent_place_id | start | end |
118 When marking for delete W10
119 Then W10 expands to no interpolation
121 | object | parent_place_id |
125 Scenario: referenced road added
126 Given the scene parallel-road
128 | osm | class | type | housenr | geometry |
129 | N1 | place | house | 2 | :n-middle-w |
130 | N2 | place | house | 6 | :n-middle-e |
132 | osm | class | type | housenr | street | geometry |
133 | W10 | place | houses | even | Cloud Street| :w-middle |
135 | osm | class | type | name | geometry |
136 | W2 | highway | unclassified | Sun Way | :w-north |
139 | 10 | 1,100,101,102,2 |
142 | object | parent_place_id |
145 And W10 expands to interpolation
146 | parent_place_id | start | end |
149 | osm | class | type | name | geometry |
150 | W3 | highway | unclassified | Cloud Street | :w-south |
152 | object | parent_place_id |
155 And W10 expands to interpolation
156 | parent_place_id | start | end |
159 Scenario: referenced road deleted
160 Given the scene parallel-road
162 | osm | class | type | housenr | geometry |
163 | N1 | place | house | 2 | :n-middle-w |
164 | N2 | place | house | 6 | :n-middle-e |
166 | osm | class | type | housenr | street | geometry |
167 | W10 | place | houses | even | Cloud Street| :w-middle |
169 | osm | class | type | name | geometry |
170 | W2 | highway | unclassified | Sun Way | :w-north |
171 | W3 | highway | unclassified | Cloud Street | :w-south |
174 | 10 | 1,100,101,102,2 |
177 | object | parent_place_id |
180 And W10 expands to interpolation
181 | parent_place_id | start | end |
183 When marking for delete W3
185 | object | parent_place_id |
188 And W10 expands to interpolation
189 | parent_place_id | start | end |
192 Scenario: building becomes interpolation
193 Given the scene building-with-parallel-streets
195 | osm | class | type | housenr | geometry |
196 | W1 | place | house | 3 | :w-building |
198 | osm | class | type | name | geometry |
199 | W2 | highway | unclassified | Cloud Street | :w-south |
202 | object | parent_place_id |
206 | 1 | 1,100,101,102,2 |
208 | osm | class | type | housenr | geometry |
209 | N1 | place | house | 2 | :n-north-w |
210 | N2 | place | house | 6 | :n-north-e |
212 | osm | class | type | housenr | street | geometry |
213 | W1 | place | houses | even | Cloud Street| :w-north |
214 Then placex has no entry for W1
215 And W1 expands to interpolation
216 | parent_place_id | start | end |
219 Scenario: interpolation becomes building
220 Given the scene building-with-parallel-streets
222 | osm | class | type | housenr | geometry |
223 | N1 | place | house | 2 | :n-north-w |
224 | N2 | place | house | 6 | :n-north-e |
226 | osm | class | type | name | geometry |
227 | W2 | highway | unclassified | Cloud Street | :w-south |
230 | 1 | 1,100,101,102,2 |
232 | osm | class | type | housenr | street | geometry |
233 | W1 | place | houses | even | Cloud Street| :w-north |
235 Then placex has no entry for W1
236 And W1 expands to interpolation
237 | parent_place_id | start | end |
240 | osm | class | type | housenr | geometry |
241 | W1 | place | house | 3 | :w-building |
243 | object | parent_place_id |
246 Scenario: housenumbers added to interpolation
247 Given the scene building-with-parallel-streets
249 | osm | class | type | name | geometry |
250 | W2 | highway | unclassified | Cloud Street | :w-south |
253 | 1 | 1,100,101,102,2 |
255 | osm | class | type | housenr | geometry |
256 | W1 | place | houses | even | :w-north |
258 Then W1 expands to no interpolation
260 | osm | class | type | housenr | geometry |
261 | N1 | place | house | 2 | :n-north-w |
262 | N2 | place | house | 6 | :n-north-e |
264 | osm | class | type | housenr | street | geometry |
265 | W1 | place | houses | even | Cloud Street| :w-north |
266 Then W1 expands to interpolation
267 | parent_place_id | start | end |
271 Scenario: housenumber added in middle of interpolation
276 | osm | class | type | name | geometry |
277 | W1 | highway | unclassified | Cloud Street | 1, 2 |
282 | osm | class | type | housenr | geometry |
283 | W2 | place | houses | even | 3,4,5 |
285 | osm | class | type | housenr |
286 | N3 | place | house | 2 |
287 | N5 | place | house | 10 |
289 Then W2 expands to interpolation
290 | parent_place_id | start | end | geometry |
291 | W1 | 2 | 10 | 3,4,5 |
293 | osm | class | type | housenr |
294 | N4 | place | house | 6 |
295 Then W2 expands to interpolation
296 | parent_place_id | start | end | geometry |
298 | W1 | 6 | 10 | 4,5 |
301 Scenario: housenumber removed in middle of interpolation
306 | osm | class | type | name | geometry |
307 | W1 | highway | unclassified | Cloud Street | 1, 2 |
312 | osm | class | type | housenr | geometry |
313 | W2 | place | houses | even | 3,4,5 |
315 | osm | class | type | housenr |
316 | N3 | place | house | 2 |
317 | N4 | place | house | 6 |
318 | N5 | place | house | 10 |
320 Then W2 expands to interpolation
321 | parent_place_id | start | end | geometry |
323 | W1 | 6 | 10 | 4,5 |
324 When marking for delete N4
325 Then W2 expands to interpolation
326 | parent_place_id | start | end | geometry |
327 | W1 | 2 | 10 | 3,4,5 |
330 Scenario: Change the start housenumber
335 | osm | class | type | name | geometry |
336 | W1 | highway | unclassified | Cloud Street | 1, 2 |
341 | osm | class | type | housenr | geometry |
342 | W2 | place | houses | even | 3,4 |
344 | osm | class | type | housenr |
345 | N3 | place | house | 2 |
346 | N4 | place | house | 6 |
348 Then W2 expands to interpolation
349 | parent_place_id | start | end | geometry |
352 | osm | class | type | housenr |
353 | N4 | place | house | 8 |
354 Then W2 expands to interpolation
355 | parent_place_id | start | end | geometry |