2 Feature: Address computation
3 Tests for filling of place_addressline
6 Scenario: Roads crossing boundaries should contain both states
12 | osm | class | type | geometry |
13 | W1 | highway | road | 7, 8 |
15 | osm | class | type | admin | geometry |
16 | W10 | boundary | administrative | 5 | (1, 2, 5, 4, 1) |
17 | W11 | boundary | administrative | 5 | (2, 3, 6, 5, 2) |
19 Then place_addressline contains
20 | object | address | cached_rank_address |
24 Scenario: buildings with only addr:postcodes do not appear in the address of a way
25 Given the scene admin-areas
27 | osm | class | type | admin | addr+postcode | geometry |
28 | R1 | boundary | administrative | 6 | 112 | :b0 |
29 | R34 | boundary | administrative | 8 | 112 DE | :b1:E |
30 | R4 | boundary | administrative | 10 | 112 DE 34 | :b2:N |
32 | osm | class | type | geometry |
33 | W93 | highway | residential | :w2N |
35 | osm | class | type | addr+postcode | geometry |
36 | W22 | place | postcode | 445023 | :building:w2N |
38 Then place_addressline doesn't contain
42 Scenario: postcode boundaries do appear in the address of a way
43 Given the scene admin-areas
45 | osm | class | type | admin | addr+postcode | geometry |
46 | R1 | boundary | administrative | 6 | 112 | :b0 |
47 | R34 | boundary | administrative | 8 | 112 DE | :b1:E |
49 | osm | class | type | addr+postcode | geometry |
50 | R4 | place | postcode | 112 DE 34 | :b2:N |
52 | osm | class | type | geometry |
53 | W93 | highway | residential | :w2N |
55 | osm | class | type | addr+postcode | geometry |
56 | W22 | place | postcode | 445023 | :building:w2N |
58 Then place_addressline contains