2 Feature: Update of address interpolations
 
   3     Test the interpolated address are updated correctly
 
   6     Scenario: new interpolation added to existing street
 
   7       Given the scene parallel-road
 
   9           | osm | class   | type         | name         | geometry |
 
  10           | W2  | highway | unclassified | Sun Way      | :w-north |
 
  11           | W3  | highway | unclassified | Cloud Street | :w-south |
 
  14           | 10  | 1,100,101,102,2 |
 
  16       Then W10 expands to no interpolation
 
  18           | osm | class | type  | housenr | geometry |
 
  19           | N1  | place | house | 2       | :n-middle-w |
 
  20           | N2  | place | house | 6       | :n-middle-e |
 
  21           | W10 | place | houses | even   | :w-middle |
 
  23           | object | parent_place_id |
 
  26       And W10 expands to interpolation
 
  27           | parent_place_id | start | end |
 
  30     Scenario: addr:street added to interpolation
 
  31       Given the scene parallel-road
 
  33           | osm | class | type  | housenr | geometry |
 
  34           | N1  | place | house | 2       | :n-middle-w |
 
  35           | N2  | place | house | 6       | :n-middle-e |
 
  36           | W10 | place | houses | even   | :w-middle |
 
  38           | osm | class   | type         | name         | geometry |
 
  39           | W2  | highway | unclassified | Sun Way      | :w-north |
 
  40           | W3  | highway | unclassified | Cloud Street | :w-south |
 
  43           | 10  | 1,100,101,102,2 |
 
  46           | object | parent_place_id |
 
  49       And W10 expands to interpolation
 
  50           | parent_place_id | start | end |
 
  53           | osm | class   | type    | housenr | street       | geometry |
 
  54           | W10 | place   | houses  | even    | Cloud Street | :w-middle |
 
  56           | object | parent_place_id |
 
  59       And W10 expands to interpolation
 
  60           | parent_place_id | start | end |
 
  63     Scenario: addr:street added to housenumbers
 
  64       Given the scene parallel-road
 
  66           | osm | class | type  | housenr | geometry |
 
  67           | N1  | place | house | 2       | :n-middle-w |
 
  68           | N2  | place | house | 6       | :n-middle-e |
 
  69           | W10 | place | houses | even   | :w-middle |
 
  71           | osm | class   | type         | name         | geometry |
 
  72           | W2  | highway | unclassified | Sun Way      | :w-north |
 
  73           | W3  | highway | unclassified | Cloud Street | :w-south |
 
  76           | 10  | 1,100,101,102,2 |
 
  79           | object | parent_place_id |
 
  82       And W10 expands to interpolation
 
  83           | parent_place_id | start | end |
 
  86           | osm | class | type  | street      | housenr | geometry |
 
  87           | N1  | place | house | Cloud Street| 2       | :n-middle-w |
 
  88           | N2  | place | house | Cloud Street| 6       | :n-middle-e |
 
  90           | object | parent_place_id |
 
  93       And W10 expands to interpolation
 
  94           | parent_place_id | start | end |
 
  97     Scenario: interpolation tag removed
 
  98       Given the scene parallel-road
 
 100           | osm | class | type  | housenr | geometry |
 
 101           | N1  | place | house | 2       | :n-middle-w |
 
 102           | N2  | place | house | 6       | :n-middle-e |
 
 103           | W10 | place | houses | even   | :w-middle |
 
 105           | osm | class   | type         | name         | geometry |
 
 106           | W2  | highway | unclassified | Sun Way      | :w-north |
 
 107           | W3  | highway | unclassified | Cloud Street | :w-south |
 
 110           | 10  | 1,100,101,102,2 |
 
 113           | object | parent_place_id |
 
 116       And W10 expands to interpolation
 
 117           | parent_place_id | start | end |
 
 119       When marking for delete W10
 
 120       Then W10 expands to no interpolation
 
 122           | object | parent_place_id |
 
 126     Scenario: referenced road added
 
 127       Given the scene parallel-road
 
 129           | osm | class | type  | housenr | geometry |
 
 130           | N1  | place | house | 2       | :n-middle-w |
 
 131           | N2  | place | house | 6       | :n-middle-e |
 
 133           | osm | class   | type    | housenr | street      | geometry |
 
 134           | W10 | place   | houses  | even    | Cloud Street| :w-middle |
 
 136           | osm | class   | type         | name     | geometry |
 
 137           | W2  | highway | unclassified | Sun Way  | :w-north |
 
 140           | 10  | 1,100,101,102,2 |
 
 143           | object | parent_place_id |
 
 146       And W10 expands to interpolation
 
 147           | parent_place_id | start | end |
 
 150           | osm | class   | type         | name         | geometry |
 
 151           | W3  | highway | unclassified | Cloud Street | :w-south |
 
 153           | object | parent_place_id |
 
 156       And W10 expands to interpolation
 
 157           | parent_place_id | start | end |
 
 160     Scenario: referenced road deleted
 
 161       Given the scene parallel-road
 
 163           | osm | class | type  | housenr | geometry |
 
 164           | N1  | place | house | 2       | :n-middle-w |
 
 165           | N2  | place | house | 6       | :n-middle-e |
 
 167           | osm | class   | type    | housenr | street      | geometry |
 
 168           | W10 | place   | houses  | even    | Cloud Street| :w-middle |
 
 170           | osm | class   | type         | name         | geometry |
 
 171           | W2  | highway | unclassified | Sun Way      | :w-north |
 
 172           | W3  | highway | unclassified | Cloud Street | :w-south |
 
 175           | 10  | 1,100,101,102,2 |
 
 178           | object | parent_place_id |
 
 181       And W10 expands to interpolation
 
 182           | parent_place_id | start | end |
 
 184       When marking for delete W3
 
 186           | object | parent_place_id |
 
 189       And W10 expands to interpolation
 
 190           | parent_place_id | start | end |
 
 193     Scenario: building becomes interpolation
 
 194       Given the scene building-with-parallel-streets
 
 196           | osm | class    | type  | housenr | geometry |
 
 197           | W1  | place    | house | 3       | :w-building |
 
 199           | osm | class   | type         | name         | geometry |
 
 200           | W2  | highway | unclassified | Cloud Street | :w-south |
 
 203           | object | parent_place_id |
 
 207           | 1   | 1,100,101,102,2 |
 
 209           | osm | class | type  | housenr | geometry |
 
 210           | N1  | place | house | 2       | :n-north-w |
 
 211           | N2  | place | house | 6       | :n-north-e |
 
 213           | osm | class   | type    | housenr | street      | geometry |
 
 214           | W1  | place   | houses  | even    | Cloud Street| :w-north |
 
 215       Then placex has no entry for W1
 
 216       And W1 expands to interpolation
 
 217           | parent_place_id | start | end |
 
 220     Scenario: interpolation becomes building
 
 221       Given the scene building-with-parallel-streets
 
 223           | osm | class | type  | housenr | geometry |
 
 224           | N1  | place | house | 2       | :n-north-w |
 
 225           | N2  | place | house | 6       | :n-north-e |
 
 227           | osm | class   | type         | name         | geometry |
 
 228           | W2  | highway | unclassified | Cloud Street | :w-south |
 
 231           | 1   | 1,100,101,102,2 |
 
 233           | osm | class   | type    | housenr | street      | geometry |
 
 234           | W1  | place   | houses  | even    | Cloud Street| :w-north |
 
 236       Then placex has no entry for W1
 
 237       And W1 expands to interpolation
 
 238           | parent_place_id | start | end |
 
 241           | osm | class    | type  | housenr | geometry |
 
 242           | W1  | place    | house | 3       | :w-building |
 
 244           | object | parent_place_id |
 
 247     Scenario: housenumbers added to interpolation
 
 248       Given the scene building-with-parallel-streets
 
 250           | osm | class   | type         | name         | geometry |
 
 251           | W2  | highway | unclassified | Cloud Street | :w-south |
 
 254           | 1   | 1,100,101,102,2 |
 
 256           | osm | class   | type    | housenr | geometry |
 
 257           | W1  | place   | houses  | even    | :w-north |
 
 259       Then W1 expands to no interpolation
 
 261           | osm | class | type  | housenr | geometry |
 
 262           | N1  | place | house | 2       | :n-north-w |
 
 263           | N2  | place | house | 6       | :n-north-e |
 
 265           | osm | class   | type    | housenr | street      | geometry |
 
 266           | W1  | place   | houses  | even    | Cloud Street| :w-north |
 
 267       Then W1 expands to interpolation
 
 268           | parent_place_id | start | end |