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
18 Scenario Outline: Coordinates must be floating-point numbers
19 When sending reverse coordinates <coords>
20 Then a HTTP 400 is returned
27 Scenario Outline: Reverse Geocoding with extratags
28 When sending <format> reverse coordinates 10.776234290950017,106.70425325632095
31 Then result 0 has attributes extratags
39 Scenario Outline: Reverse Geocoding with namedetails
40 When sending <format> reverse coordinates 10.776455623137625,106.70175343751907
43 Then result 0 has attributes namedetails
51 Scenario Outline: Reverse Geocoding contains TEXT geometry
52 When sending <format> reverse coordinates 47.165989816710066,9.515774846076965
55 Then result 0 has attributes <response_attribute>
58 | format | response_attribute |
63 Scenario Outline: Reverse Geocoding contains polygon-as-points geometry
64 When sending <format> reverse coordinates 47.165989816710066,9.515774846076965
67 Then result 0 has not attributes <response_attribute>
70 | format | response_attribute |
71 | xml | polygonpoints |
72 | json | polygonpoints |
73 | jsonv2 | polygonpoints |
75 Scenario Outline: Reverse Geocoding contains SVG geometry
76 When sending <format> reverse coordinates 47.165989816710066,9.515774846076965
79 Then result 0 has attributes <response_attribute>
82 | format | response_attribute |
87 Scenario Outline: Reverse Geocoding contains KML geometry
88 When sending <format> reverse coordinates 47.165989816710066,9.515774846076965
91 Then result 0 has attributes <response_attribute>
94 | format | response_attribute |
99 Scenario Outline: Reverse Geocoding contains GEOJSON geometry
100 When sending <format> reverse coordinates 47.165989816710066,9.515774846076965
103 Then result 0 has attributes <response_attribute>
106 | format | response_attribute |