]> git.openstreetmap.org Git - nominatim.git/blob - test/bdd/features/db/query/reverse.feature
reverse: only return housenumbers near street
[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.0001,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: Find closest housenumber for street matches
25         Given the 0.0001 grid with origin 1,1
26           |    | 1 |   |    |
27           |    |   | 2 |    |
28           | 10 |   |   | 11 |
29         And the places
30           | osm | class   | type     | name        | geometry |
31           | W1  | highway | service  | Goose Drive | 10,11    |
32           | N2  | tourism | art_work | Beauty      | 2        |
33         And the places
34           | osm | class | type  | housenr | geometry |
35           | N1  | place | house | 23      | 1        |
36         When importing
37         When reverse geocoding 1.0002,1.0002
38         Then the result contains
39           | object |
40           | N1 |