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 | 7096 | Kings Estate Drive | 84128 | us
36 And result 0 has not attributes osm_id,osm_type
40 Scenario: No TIGER house number for zoom < 18
41 Given the request parameters
42 | addressdetails | zoom
44 When looking up coordinates 40.6863624710666,-112.060005720023
45 And exactly 1 result is returned
46 And result addresses contain
47 | ID | road | postcode | country_code
48 | 0 | Kings Estate Drive | 84128 | us
49 And result 0 has attributes osm_id,osm_type
51 Scenario Outline: Reverse Geocoding with extratags
52 Given the request parameters
55 When looking up <format> coordinates 48.86093,2.2978
56 Then result 0 has attributes extratags
64 Scenario Outline: Reverse Geocoding with namedetails
65 Given the request parameters
68 When looking up <format> coordinates 48.86093,2.2978
69 Then result 0 has attributes namedetails
78 Scenario Outline: Reverse Geocoding contains TEXT geometry
79 Given the request parameters
82 When looking up <format> coordinates 48.86093,2.2978
83 Then result 0 has attributes <response_attribute>
86 | format | response_attribute
91 Scenario Outline: Reverse Geocoding contains polygon-as-points geometry
92 Given the request parameters
95 When looking up <format> coordinates 48.86093,2.2978
96 Then result 0 has not attributes <response_attribute>
99 | format | response_attribute
100 | xml | polygonpoints
101 | json | polygonpoints
102 | jsonv2 | polygonpoints
106 Scenario Outline: Reverse Geocoding contains SVG geometry
107 Given the request parameters
110 When looking up <format> coordinates 48.86093,2.2978
111 Then result 0 has attributes <response_attribute>
114 | format | response_attribute
120 Scenario Outline: Reverse Geocoding contains KML geometry
121 Given the request parameters
124 When looking up <format> coordinates 48.86093,2.2978
125 Then result 0 has attributes <response_attribute>
128 | format | response_attribute
134 Scenario Outline: Reverse Geocoding contains GEOJSON geometry
135 Given the request parameters
138 When looking up <format> coordinates 48.86093,2.2978
139 Then result 0 has attributes <response_attribute>
142 | format | response_attribute