]> git.openstreetmap.org Git - nominatim.git/blob - test/bdd/api/reverse/params.feature
NearPoint::extractFromQuery - greedy-match optional quote sign
[nominatim.git] / test / bdd / api / reverse / params.feature
1 @APIDB
2 Feature: Parameters for Reverse API
3     Testing different parameter options for reverse API.
4
5     Scenario Outline: Reverse-geocoding without address
6         When sending <format> reverse coordinates 53.603,10.041
7           | addressdetails |
8           | 0 |
9         Then exactly 1 result is returned
10         And result has not attributes address
11
12     Examples:
13       | format |
14       | json |
15       | jsonv2 |
16       | xml |
17
18     Scenario Outline: Reverse Geocoding with extratags
19         When sending <format> reverse coordinates 10.776234290950017,106.70425325632095
20           | extratags |
21           | 1 |
22         Then result 0 has attributes extratags
23
24     Examples:
25         | format |
26         | xml |
27         | json |
28         | jsonv2 |
29
30     Scenario Outline: Reverse Geocoding with namedetails
31         When sending <format> reverse coordinates 10.776455623137625,106.70175343751907
32           | namedetails |
33           | 1 |
34         Then result 0 has attributes namedetails
35
36     Examples:
37         | format |
38         | xml |
39         | json |
40         | jsonv2 |
41
42     Scenario Outline: Reverse Geocoding contains TEXT geometry
43         When sending <format> reverse coordinates 47.165989816710066,9.515774846076965
44           | polygon_text |
45           | 1 |
46         Then result 0 has attributes <response_attribute>
47
48     Examples:
49         | format   | response_attribute |
50         | xml      | geotext |
51         | json     | geotext |
52         | jsonv2   | geotext |
53
54     Scenario Outline: Reverse Geocoding contains polygon-as-points geometry
55         When sending <format> reverse coordinates 47.165989816710066,9.515774846076965
56           | polygon |
57           | 1 |
58         Then result 0 has not attributes <response_attribute>
59
60     Examples:
61         | format   | response_attribute |
62         | xml      | polygonpoints |
63         | json     | polygonpoints |
64         | jsonv2   | polygonpoints |
65
66     Scenario Outline: Reverse Geocoding contains SVG geometry
67         When sending <format> reverse coordinates 47.165989816710066,9.515774846076965
68           | polygon_svg |
69           | 1 |
70         Then result 0 has attributes <response_attribute>
71
72     Examples:
73         | format   | response_attribute |
74         | xml      | geosvg |
75         | json     | svg |
76         | jsonv2   | svg |
77
78     Scenario Outline: Reverse Geocoding contains KML geometry
79         When sending <format> reverse coordinates 47.165989816710066,9.515774846076965
80           | polygon_kml |
81           | 1 |
82         Then result 0 has attributes <response_attribute>
83
84     Examples:
85         | format   | response_attribute |
86         | xml      | geokml |
87         | json     | geokml |
88         | jsonv2   | geokml |
89
90     Scenario Outline: Reverse Geocoding contains GEOJSON geometry
91         When sending <format> reverse coordinates 47.165989816710066,9.515774846076965
92           | polygon_geojson |
93           | 1 |
94         Then result 0 has attributes <response_attribute>
95
96     Examples:
97         | format   | response_attribute |
98         | xml      | geojson |
99         | json     | geojson |
100         | jsonv2   | geojson |
101
102