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
22 Scenario: Reverse geocoding for odd interpolated housenumber
24 Scenario: Reverse geocoding for even interpolated housenumber
27 Scenario: TIGER house number
28 Given the request parameters
31 When looking up coordinates 40.6863624710666,-112.060005720023
32 And exactly 1 result is returned
33 And result addresses contain
34 | ID | house_number | road | postcode | country_code
35 | 0 | 709. | Kings Estate Drive | 84128 | us
41 Scenario: No TIGER house number for zoom < 18
42 Given the request parameters
43 | addressdetails | zoom
45 When looking up coordinates 40.6863624710666,-112.060005720023
46 And exactly 1 result is returned
47 And result addresses contain
48 | ID | road | postcode | country_code
49 | 0 | Kings Estate Drive | 84128 | us
50 And result 0 has attributes osm_id,osm_type
52 Scenario Outline: Reverse Geocoding with extratags
53 Given the request parameters
56 When looking up <format> coordinates 48.86093,2.2978
57 Then result 0 has attributes extratags
65 Scenario Outline: Reverse Geocoding with namedetails
66 Given the request parameters
69 When looking up <format> coordinates 48.86093,2.2978
70 Then result 0 has attributes namedetails
79 Scenario Outline: Reverse Geocoding contains TEXT geometry
80 Given the request parameters
83 When looking up <format> coordinates 48.86093,2.2978
84 Then result 0 has attributes <response_attribute>
87 | format | response_attribute
92 Scenario Outline: Reverse Geocoding contains polygon-as-points geometry
93 Given the request parameters
96 When looking up <format> coordinates 48.86093,2.2978
97 Then result 0 has not attributes <response_attribute>
100 | format | response_attribute
101 | xml | polygonpoints
102 | json | polygonpoints
103 | jsonv2 | polygonpoints
107 Scenario Outline: Reverse Geocoding contains SVG geometry
108 Given the request parameters
111 When looking up <format> coordinates 48.86093,2.2978
112 Then result 0 has attributes <response_attribute>
115 | format | response_attribute
121 Scenario Outline: Reverse Geocoding contains KML geometry
122 Given the request parameters
125 When looking up <format> coordinates 48.86093,2.2978
126 Then result 0 has attributes <response_attribute>
129 | format | response_attribute
135 Scenario Outline: Reverse Geocoding contains GEOJSON geometry
136 Given the request parameters
139 When looking up <format> coordinates 48.86093,2.2978
140 Then result 0 has attributes <response_attribute>
143 | format | response_attribute