]> git.openstreetmap.org Git - nominatim.git/blob - test/bdd/features/db/query/reverse.feature
prepare release 5.3.2.post7
[nominatim.git] / test / bdd / features / db / query / reverse.feature
1 Feature: Reverse searches
2     Test results of reverse queries
3
4     Scenario: POI in POI area
5         Given the 0.0001 grid with origin 1,1
6           | 1 |   |  |  |  |  |  |  | 2 |
7           |   | 9 |  |  |  |  |  |  |   |
8           | 4 |   |  |  |  |  |  |  | 3 |
9         And the places
10           | osm | class   | type       | geometry    |
11           | W1  | aeroway | terminal   | (1,2,3,4,1) |
12           | N9  | amenity | restaurant | 9           |
13         When importing
14         And reverse geocoding 1.0002,1.0001
15         Then the result contains
16          | object |
17          | N9  |
18         When reverse geocoding 1.0003,1.0001
19         Then the result contains
20          | object |
21          | W1  |
22
23
24     Scenario: POI in POI area with different housenumbers
25         Given the 0.0001 grid with origin 1,1
26           | 1 |   |  |  |  |  |  |  | 2 |
27           |   | 9 |  |  |  |  |  |  |   |
28           | 4 |   |  |  |  |  |  |  | 3 |
29         And the places
30           | osm | class   | type       | housenr | geometry    |
31           | W1  | aeroway | terminal   | 11      | (1,2,3,4,1) |
32           | N9  | amenity | restaurant | 13      | 9           |
33         When importing
34         And reverse geocoding 1.0002,1.0001
35         Then the result contains
36          | object |
37          | W1  |
38
39
40     Scenario: Find closest housenumber for street matches
41         Given the 0.0001 grid with origin 1,1
42           |    | 1 |   |    |
43           |    |   | 2 |    |
44           | 10 |   |   | 11 |
45         And the places
46           | osm | class   | type     | name        | geometry |
47           | W1  | highway | service  | Goose Drive | 10,11    |
48           | N2  | tourism | art_work | Beauty      | 2        |
49         And the places
50           | osm | class | type  | housenr | geometry |
51           | N1  | place | house | 23      | 1        |
52         When importing
53         When reverse geocoding 1.0002,1.0002
54         Then the result contains
55           | object |
56           | N1 |