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: TIGER house number
16 Given the request parameters
19 When looking up coordinates 40.6863624710666,-112.060005720023
20 And exactly 1 result is returned
21 And result addresses contain
22 | ID | house_number | road | postcode | country_code
23 | 0 | 7094 | Kings Estate Drive | 84128 | us
24 And result 0 has not attributes osm_id,osm_type
28 Scenario: No TIGER house number for zoom < 18
29 Given the request parameters
30 | addressdetails | zoom
32 When looking up coordinates 40.6863624710666,-112.060005720023
33 And exactly 1 result is returned
34 And result addresses contain
35 | ID | road | postcode | country_code
36 | 0 | Kings Estate Drive | 84128 | us
37 And result 0 has attributes osm_id,osm_type
39 Scenario Outline: Reverse Geocoding with extratags
40 Given the request parameters
43 When looking up <format> coordinates 48.86093,2.2978
44 Then result 0 has attributes extratags
52 Scenario Outline: Reverse Geocoding with namedetails
53 Given the request parameters
56 When looking up <format> coordinates 48.86093,2.2978
57 Then result 0 has attributes namedetails
66 Scenario Outline: Reverse Geocoding contains TEXT geometry
67 Given the request parameters
70 When looking up <format> coordinates 48.86093,2.2978
71 Then result 0 has attributes <response_attribute>
74 | format | response_attribute
79 Scenario Outline: Reverse Geocoding contains polygon-as-points geometry
80 Given the request parameters
83 When looking up <format> coordinates 48.86093,2.2978
84 Then result 0 has not attributes <response_attribute>
87 | format | response_attribute
89 | json | polygonpoints
90 | jsonv2 | polygonpoints
94 Scenario Outline: Reverse Geocoding contains SVG geometry
95 Given the request parameters
98 When looking up <format> coordinates 48.86093,2.2978
99 Then result 0 has attributes <response_attribute>
102 | format | response_attribute
108 Scenario Outline: Reverse Geocoding contains KML geometry
109 Given the request parameters
112 When looking up <format> coordinates 48.86093,2.2978
113 Then result 0 has attributes <response_attribute>
116 | format | response_attribute
122 Scenario Outline: Reverse Geocoding contains GEOJSON geometry
123 Given the request parameters
126 When looking up <format> coordinates 48.86093,2.2978
127 Then result 0 has attributes <response_attribute>
130 | format | response_attribute