1 Feature: Reverse geocoding
2 Testing the reverse function
4 # Make sure country is not overwritten by the postcode
5 Scenario: Country is returned
6 Given the request parameters
9 When looking up coordinates 53.9788769,13.0830313
10 Then result addresses contain
15 Scenario: Boundingbox is returned
16 Given the request parameters
19 When looking up coordinates 53.9788769,13.0830313
20 And results contain valid boundingboxes
24 Scenario: TIGER house number
25 Given the request parameters
28 When looking up coordinates 40.6863624710666,-112.060005720023
29 And exactly 1 result is returned
30 And result addresses contain
31 | ID | house_number | road | postcode | country_code
32 | 0 | 7094 | Kings Estate Drive | 84128 | us
33 And result 0 has not attributes osm_id,osm_type
37 Scenario: No TIGER house number for zoom < 18
38 Given the request parameters
39 | addressdetails | zoom
41 When looking up coordinates 40.6863624710666,-112.060005720023
42 And exactly 1 result is returned
43 And result addresses contain
44 | ID | road | postcode | country_code
45 | 0 | Kings Estate Drive | 84128 | us
46 And result 0 has attributes osm_id,osm_type
48 Scenario Outline: Reverse Geocoding with extratags
49 Given the request parameters
52 When looking up <format> coordinates 48.86093,2.2978
53 Then result 0 has attributes extratags
61 Scenario Outline: Reverse Geocoding with namedetails
62 Given the request parameters
65 When looking up <format> coordinates 48.86093,2.2978
66 Then result 0 has attributes namedetails
75 Scenario Outline: Reverse Geocoding contains TEXT geometry
76 Given the request parameters
79 When looking up <format> coordinates 48.86093,2.2978
80 Then result 0 has attributes <response_attribute>
83 | format | response_attribute
88 Scenario Outline: Reverse Geocoding contains polygon-as-points geometry
89 Given the request parameters
92 When looking up <format> coordinates 48.86093,2.2978
93 Then result 0 has not attributes <response_attribute>
96 | format | response_attribute
98 | json | polygonpoints
99 | jsonv2 | polygonpoints
103 Scenario Outline: Reverse Geocoding contains SVG geometry
104 Given the request parameters
107 When looking up <format> coordinates 48.86093,2.2978
108 Then result 0 has attributes <response_attribute>
111 | format | response_attribute
117 Scenario Outline: Reverse Geocoding contains KML geometry
118 Given the request parameters
121 When looking up <format> coordinates 48.86093,2.2978
122 Then result 0 has attributes <response_attribute>
125 | format | response_attribute
131 Scenario Outline: Reverse Geocoding contains GEOJSON geometry
132 Given the request parameters
135 When looking up <format> coordinates 48.86093,2.2978
136 Then result 0 has attributes <response_attribute>
139 | format | response_attribute