1 Feature: Update of address interpolations
2 Test the interpolated address are updated correctly
4 Scenario: new interpolation added to existing street
11 | osm | class | type | name | geometry |
12 | W2 | highway | unclassified | Sun Way | 10,11 |
13 | W3 | highway | unclassified | Cloud Street | 20,21 |
15 Then W10 expands to no interpolation
17 | osm | class | type | housenr |
18 | N1 | place | house | 2 |
19 | N2 | place | house | 6 |
20 And updating interpolations
21 | osm | type | geometry | nodes |
22 | W10 | even | 1,2 | 1,2 |
24 | object | parent_place_id |
27 And W10 expands to interpolation
28 | parent_place_id | start | end | geometry |
31 Scenario: addr:street added to interpolation
38 | osm | class | type | housenr |
39 | N1 | place | house | 2 |
40 | N2 | place | house | 6 |
41 And the interpolations
42 | osm | type | geometry | nodes |
43 | W10 | even | 1,2 | 1,2 |
45 | osm | class | type | name | geometry |
46 | W2 | highway | unclassified | Sun Way | 10,11 |
47 | W3 | highway | unclassified | Cloud Street | 20,21 |
50 | object | parent_place_id |
53 And W10 expands to interpolation
54 | parent_place_id | start | end |
56 When updating interpolations
57 | osm | type | street | nodes | geometry |
58 | W10 | even | Cloud Street | 1,2 | 1,2 |
60 | object | parent_place_id |
63 And W10 expands to interpolation
64 | parent_place_id | start | end |
67 Scenario: addr:street added to housenumbers
74 | osm | class | type | housenr |
75 | N1 | place | house | 2 |
76 | N2 | place | house | 6 |
77 And the interpolations
78 | osm | type | geometry | nodes |
79 | W10 | even | 1,2 | 1,2 |
81 | osm | class | type | name | geometry |
82 | W2 | highway | unclassified | Sun Way | 10,11 |
83 | W3 | highway | unclassified | Cloud Street | 20,21 |
86 | object | parent_place_id |
89 And W10 expands to interpolation
90 | parent_place_id | start | end |
93 | osm | class | type | street | housenr |
94 | N1 | place | house | Cloud Street| 2 |
95 | N2 | place | house | Cloud Street| 6 |
97 | object | parent_place_id |
100 And W10 expands to interpolation
101 | parent_place_id | start | end |
104 Scenario: interpolation tag removed
111 | osm | class | type | housenr |
112 | N1 | place | house | 2 |
113 | N2 | place | house | 6 |
114 And the interpolations
115 | osm | type | geometry | nodes |
116 | W10 | even | 1,2 | 1,2 |
118 | osm | class | type | name | geometry |
119 | W2 | highway | unclassified | Sun Way | 10,11 |
120 | W3 | highway | unclassified | Cloud Street | 20,21 |
123 | object | parent_place_id |
126 And W10 expands to interpolation
127 | parent_place_id | start | end |
129 When marking for delete W10
130 Then W10 expands to no interpolation
132 | object | parent_place_id |
136 Scenario: referenced road added
143 | osm | class | type | housenr |
144 | N1 | place | house | 2 |
145 | N2 | place | house | 6 |
146 And the interpolations
147 | osm | type | street | geometry | nodes |
148 | W10 | even | Cloud Street| 1,2 | 1,2 |
150 | osm | class | type | name | geometry |
151 | W2 | highway | unclassified | Sun Way | 10,11 |
154 | object | parent_place_id |
157 And W10 expands to interpolation
158 | parent_place_id | start | end |
161 | osm | class | type | name | geometry |
162 | W3 | highway | unclassified | Cloud Street | 20,21 |
164 | object | parent_place_id |
167 And W10 expands to interpolation
168 | parent_place_id | start | end |
171 Scenario: referenced road deleted
178 | osm | class | type | housenr |
179 | N1 | place | house | 2 |
180 | N2 | place | house | 6 |
181 And the interpolations
182 | osm | type | street | geometry | nodes |
183 | W10 | even | Cloud Street| 1,2 | 1,2 |
185 | osm | class | type | name | geometry |
186 | W2 | highway | unclassified | Sun Way | 10,11 |
187 | W3 | highway | unclassified | Cloud Street | 20,21 |
190 | object | parent_place_id |
193 And W10 expands to interpolation
194 | parent_place_id | start | end |
196 When marking for delete W3
198 | object | parent_place_id |
201 And W10 expands to interpolation
202 | parent_place_id | start | end |
205 Scenario: housenumbers added to interpolation
210 | osm | class | type | name | geometry |
211 | W2 | highway | unclassified | Cloud Street | 10,11 |
212 And the interpolations
213 | osm | type | geometry | nodes |
214 | W1 | even | 1,2 | 1,2 |
216 Then W1 expands to no interpolation
218 | osm | class | type | housenr |
219 | N1 | place | house | 2 |
220 | N2 | place | house | 6 |
221 And updating interpolations
222 | osm | type | geometry | nodes |
223 | W1 | even | 1,2 | 1,2 |
224 Then W1 expands to interpolation
225 | parent_place_id | start | end |
228 Scenario: housenumber added in middle of interpolation
233 | osm | class | type | name | geometry |
234 | W1 | highway | unclassified | Cloud Street | 1, 2 |
235 And the interpolations
236 | osm | type | geometry | nodes |
237 | W2 | even | 3,4,5 | 3,4,5 |
239 | osm | class | type | housenr |
240 | N3 | place | house | 2 |
241 | N5 | place | house | 10 |
243 Then W2 expands to interpolation
244 | parent_place_id | start | end |
247 | osm | class | type | housenr |
248 | N4 | place | house | 6 |
249 And updating interpolations
250 | osm | type | geometry | nodes |
251 | W2 | even | 3,4,5 | 3,4,5 |
252 Then W2 expands to interpolation
253 | parent_place_id | start | end |
257 Scenario: housenumber removed in middle of interpolation
262 | osm | class | type | name | geometry |
263 | W1 | highway | unclassified | Cloud Street | 1, 2 |
264 And the interpolations
265 | osm | type | geometry | nodes |
266 | W2 | even | 3,4,5 | 3,4,5 |
268 | osm | class | type | housenr |
269 | N3 | place | house | 2 |
270 | N4 | place | house | 6 |
271 | N5 | place | house | 10 |
273 Then W2 expands to interpolation
274 | parent_place_id | start | end |
277 When marking for delete N4
278 And updating interpolations
279 | osm | type | geometry | nodes |
280 | W2 | even | 3,4,5 | 3,4,5 |
281 Then W2 expands to interpolation
282 | parent_place_id | start | end |
285 Scenario: Change the start housenumber
290 | osm | class | type | name | geometry |
291 | W1 | highway | unclassified | Cloud Street | 1, 2 |
292 And the interpolations
293 | osm | type | geometry | nodes |
294 | W2 | even | 3,4 | 3,4 |
296 | osm | class | type | housenr |
297 | N3 | place | house | 2 |
298 | N4 | place | house | 6 |
300 Then W2 expands to interpolation
301 | parent_place_id | start | end |
304 | osm | class | type | housenr |
305 | N4 | place | house | 8 |
306 And updating interpolations
307 | osm | type | geometry | nodes |
308 | W2 | even | 3,4 | 3,4 |
309 Then W2 expands to interpolation
310 | parent_place_id | start | end |