]> git.openstreetmap.org Git - nominatim.git/blob - test/bdd/features/db/query/uk.feature
prepare release 5.3.3.post4
[nominatim.git] / test / bdd / features / db / query / uk.feature
1 Feature: Searches in the UK
2     Test addressing particularities in the UK.
3
4     Scenario: A terrace address tagged with addr:place with a parent street is found
5         Given the grid with origin GB
6           | 10 |   |   |   |   | 11 |
7           |    | 1 |   |   | 2 |    |
8           |    |   | 8 | 9 |   |    |
9           | 13 |   |   |   |   | 12 |
10         And the places
11           | osm | class   | type        | name       | geometry |
12           | W1  | highway | residential | Garden Way | 1,2      |
13           | W10 | place   | suburb      | Lille      | (10,11,12,13,10) |
14         And the places
15           | osm | class | type  | housenr | street     | geometry |
16           | N8  | place | house | 5       | Garden Way | 8 |
17         And the places
18           | osm | class | type  | housenr | addr+place  | addr+parentstreet | geometry |
19           | N9  | place | house | 5       | Bow Terrace | Garden Way        | 9        |
20         When importing
21         Then placex contains
22           | object | parent_place_id |
23           | N8     | W1              |
24           | N9     | W10             |
25         When geocoding "5 Garden Way, Lille"
26         Then all results contain
27           | object | display_name!fm |
28           | N8     | 5, Garden Way, Lille,.* |
29         When geocoding "5 Bow Terrace, Garden Way"
30         Then all results contain
31           | object | display_name!fm |
32           | N9     | 5, Bow Terrace, Garden Way, Lille,.* |
33
34     Scenario: A landuse address tagged with addr:place with a parent street is found
35         Given the grid with origin GB
36           | 10 |   |   |   |   | 11 |
37           |    | 1 |   |   | 2 |    |
38           |    |   | 8 | 9 |   |    |
39           | 13 |   |   |   |   | 12 |
40         And the places
41           | osm | class   | type        | name       | geometry |
42           | W1  | highway | residential | Garden Way | 1,2      |
43           | W9  | landuse | industrial  | IArea      | (10,11,12,13,10) |
44           | W10 | place   | suburb      | Lille      | (10,11,12,13,10) |
45         And the places
46           | osm | class | type  | housenr | street     | geometry |
47           | N8  | place | house | 5       | Garden Way | 8 |
48         And the places
49           | osm | class | type  | housenr | addr+place  | addr+parentstreet | geometry |
50           | N9  | place | house | 5       | IArea       | Garden Way        | 9        |
51         When importing
52         Then placex contains
53           | object | parent_place_id |
54           | N8     | W1              |
55           | N9     | W9              |
56         When geocoding "5 Garden Way, Lille"
57         Then all results contain
58           | object | display_name!fm |
59           | N8     | 5, Garden Way, IArea, Lille,.* |
60         When geocoding "5 IArea, Garden Way"
61         Then all results contain
62           | object | display_name!fm |
63           | N9     | 5, IArea, Garden Way, Lille,.* |
64
65     Scenario: A dependent street address is found
66         Given the grid with origin GB
67           | 10 |   |   |   |   | 11 |
68           |    | 1 |   | 4 | 2 |    |
69           |    |   | 8 |   |   |    |
70           |    |   |   | 5 |   |    |
71           |    |   |   | 9 |   |    |
72           | 13 |   |   |   |   | 12 |
73         And the places
74           | osm | class   | type        | name       | geometry |
75           | W1  | highway | residential | Garden Way | 1,4,2 |
76           | W2  | highway | residential | Short Road | 4,5 |
77           | W10 | place   | suburb      | Lille      | (10,11,12,13,10) |
78         And the places
79           | osm | class | type  | housenr | street     | geometry |
80           | N8  | place | house | 5       | Garden Way | 8 |
81         And the places
82           | osm | class | type  | housenr | addr+street | addr+parentstreet | geometry |
83           | N9  | place | house | 5       | Short Road  | Garden Way        | 9        |
84         When importing
85         Then placex contains
86           | object | parent_place_id |
87           | N8     | W1              |
88           | N9     | W2              |
89         When geocoding "5 Garden Way, Lille"
90         Then all results contain
91           | object | display_name!fm |
92           | N8     | 5, Garden Way, Lille,.* |
93         When geocoding "5 Short Road, Garden Way"
94         Then all results contain
95           | object | display_name!fm |
96           | N9     | 5, Short Road, Garden Way, Lille,.* |