2 Feature: Parameters for Reverse API
3 Testing different parameter options for reverse API.
5 Scenario Outline: Reverse-geocoding without address
6 When sending <format> reverse coordinates 53.603,10.041
9 Then exactly 1 result is returned
10 And result has not attributes address
19 Scenario Outline: Coordinates must be floating-point numbers
20 When sending reverse coordinates <coords>
21 Then a HTTP 400 is returned
28 Scenario Outline: Reverse Geocoding with extratags
29 When sending <format> reverse coordinates 10.776234290950017,106.70425325632095
32 Then result 0 has attributes extratags
41 Scenario Outline: Reverse Geocoding with namedetails
42 When sending <format> reverse coordinates 10.776455623137625,106.70175343751907
45 Then result 0 has attributes namedetails
54 Scenario Outline: Reverse Geocoding contains TEXT geometry
55 When sending <format> reverse coordinates 47.165989816710066,9.515774846076965
58 Then result 0 has attributes <response_attribute>
61 | format | response_attribute |
66 Scenario Outline: Reverse Geocoding contains SVG geometry
67 When sending <format> reverse coordinates 47.165989816710066,9.515774846076965
70 Then result 0 has attributes <response_attribute>
73 | format | response_attribute |
78 Scenario Outline: Reverse Geocoding contains KML geometry
79 When sending <format> reverse coordinates 47.165989816710066,9.515774846076965
82 Then result 0 has attributes <response_attribute>
85 | format | response_attribute |
90 Scenario Outline: Reverse Geocoding contains GEOJSON geometry
91 When sending <format> reverse coordinates 47.165989816710066,9.515774846076965
94 Then result 0 has attributes <response_attribute>
97 | format | response_attribute |
101 | geojson | geojson |
103 Scenario Outline: Reverse Geocoding in geojson format contains no non-geojson geometry
104 When sending geojson reverse coordinates 47.165989816710066,9.515774846076965
105 | polygon_text | polygon_svg | polygon_geokml |
107 Then result 0 has not attributes <response_attribute>
110 | response_attribute |