]> git.openstreetmap.org Git - nominatim.git/blob - test/bdd/api/reverse/layers.feature
Merge pull request #3006 from biswajit-k/generalize-filter
[nominatim.git] / test / bdd / api / reverse / layers.feature
1 @APIDB
2 Feature: Layer parameter in reverse geocoding
3     Testing correct function of layer selection while reverse geocoding
4
5     @v1-api-python-only
6     Scenario: POIs are selected by default
7         When sending v1/reverse at 47.14077,9.52414
8         Then results contain
9           | category | type      |
10           | tourism  | viewpoint |
11
12
13     @v1-api-python-only
14     Scenario Outline: Same address level POI with different layers
15         When sending v1/reverse at 47.14077,9.52414
16           | layer   |
17           | <layer> |
18         Then results contain
19           | category   |
20           | <category> |
21
22
23         Examples:
24           | layer           | category |
25           | address         | highway  |
26           | poi,address     | tourism  |
27           | address,poi     | tourism  |
28           | natural         | waterway |
29           | address,natural | highway  |
30           | natural,poi     | tourism  |
31
32
33     @v1-api-python-only
34      Scenario Outline: POIs are not selected without housenumber for address layer
35         When sending v1/reverse at 47.13816,9.52168
36           | layer   |
37           | <layer> |
38         Then results contain
39           | category   | type   |
40           | <category> | <type> |
41
42         Examples:
43           | layer       | category | type     |
44           | address,poi | highway  | bus_stop |
45           | address     | amenity  | parking  |
46
47
48     @v1-api-python-only
49      Scenario: Between natural and low-zoom address prefer natural
50          When sending v1/reverse at 47.13636,9.52094
51            | layer           | zoom |
52            | natural,address | 15   |
53          Then results contain
54            | category |
55            | waterway |
56
57
58     @v1-api-python-only
59     Scenario Outline: Search for mountain peaks begins at level 12
60         When sending v1/reverse at 47.08221,9.56769
61           | layer   | zoom   |
62           | natural | <zoom> |
63         Then results contain
64           | category   | type   |
65           | <category> | <type> |
66
67         Examples:
68           | zoom | category | type  |
69           | 12   | natural  | peak  |
70           | 13   | waterway | river |
71
72
73     @v1-api-python-only
74      Scenario Outline: Reverse serach with manmade layers
75         When sending v1/reverse at 32.46904,-86.44439
76           | layer   |
77           | <layer> |
78         Then results contain
79           | category   | type   |
80           | <category> | <type> |
81
82         Examples:
83           | layer           | category | type        |
84           | manmade         | leisure  | park        |
85           | address         | highway  | residential |
86           | poi             | leisure  | pitch       |
87           | natural         | waterway | stream      |
88           | natural,manmade | leisure  | park        |