2 Feature: Update of POI-inherited poscode
3 Test updates of postcodes on street which was inherited from a related POI
5 Background: Street and house with postcode
6 Given the scene roads-with-pois
8 | osm | class | type | housenr | postcode | street | geometry |
9 | N1 | place | house | 1 | 12345 | North St |:p-S1 |
11 | osm | class | type | name | geometry |
12 | W1 | highway | residential | North St | :w-north |
14 Then search_name contains
15 | object | nameaddress_vector |
18 Scenario: POI-inherited postcode remains when way type is changed
20 | osm | class | type | name | geometry |
21 | W1 | highway | unclassified | North St | :w-north |
22 Then search_name contains
23 | object | nameaddress_vector |
26 Scenario: POI-inherited postcode remains when way name is changed
28 | osm | class | type | name | geometry |
29 | W1 | highway | unclassified | South St | :w-north |
30 Then search_name contains
31 | object | nameaddress_vector |
34 Scenario: POI-inherited postcode remains when way geometry is changed
36 | osm | class | type | name | geometry |
37 | W1 | highway | unclassified | South St | :w-south |
38 Then search_name contains
39 | object | nameaddress_vector |
42 Scenario: POI-inherited postcode is added when POI postcode changes
44 | osm | class | type | housenr | postcode | street | geometry |
45 | N1 | place | house | 1 | 54321 | North St |:p-S1 |
46 Then search_name contains
47 | object | nameaddress_vector |
50 Scenario: POI-inherited postcode remains when POI geometry changes
52 | osm | class | type | housenr | postcode | street | geometry |
53 | N1 | place | house | 1 | 12345 | North St |:p-S2 |
54 Then search_name contains
55 | object | nameaddress_vector |