3 Feature: Reverse geocoding
4 Testing the reverse function
6 Scenario Outline: Simple reverse-geocoding with no results
7 When sending v1/reverse at <lat>,<lon>
8 Then exactly 0 results are returned
19 Scenario: Unknown countries fall back to default country grid
20 When sending v1/reverse at 45.174,-103.072
22 | category | type | display_name |
23 | place | country | United States |
27 Scenario: TIGER house number
28 When sending v1/reverse at 32.4752389363,-86.4810198619
32 And result addresses contain
33 | house_number | road | postcode | country_code |
34 | 707 | Upper Kingston Road | 36067 | us |
37 Scenario: No TIGER house number for zoom < 18
38 When sending v1/reverse at 32.4752389363,-86.4810198619
42 | osm_type | category |
44 And result addresses contain
45 | road | postcode | country_code |
46 | Upper Kingston Road | 36067 | us |
48 Scenario: Interpolated house number
49 When sending v1/reverse at 47.118533,9.57056562
51 | osm_type | category | type |
52 | way | place | house |
53 And result addresses contain
54 | house_number | road |
57 Scenario: Address with non-numerical house number
58 When sending v1/reverse at 47.107465,9.52838521614
59 Then result addresses contain
60 | house_number | road |
61 | 39A/B | Dorfstrasse |
64 Scenario: Address with numerical house number
65 When sending v1/reverse at 47.168440329479594,9.511551699184338
66 Then result addresses contain
67 | house_number | road |
70 Scenario Outline: Zoom levels below 5 result in country
71 When sending v1/reverse at 47.16,9.51
86 Scenario: When on a street, the closest interpolation is shown
87 When sending v1/reverse at 47.118457166193245,9.570678289621355
92 | 1021, Grosssteg, Sücka, Triesenberg, Oberland, 9497, Liechtenstein |
95 Scenario: Interpolations do not override house numbers when they are closer
96 When sending v1/reverse at 47.11778,9.57255
101 | 5, Grosssteg, Steg, Triesenberg, Oberland, 9497, Liechtenstein |
103 Scenario: Interpolations do not override house numbers when they are closer (2)
104 When sending v1/reverse at 47.11834,9.57167
109 | 3, Grosssteg, Sücka, Triesenberg, Oberland, 9497, Liechtenstein |
111 Scenario: When on a street with zoom 18, the closest housenumber is returned
112 When sending v1/reverse at 47.11755503977281,9.572722250405036
115 Then result addresses contain