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