1 Feature: Reverse geocoding
 
   2     Testing the reverse function
 
   4     Scenario: Reverse - Unknown countries fall back to default country grid
 
   5         When reverse geocoding 45.174,-103.072
 
   6         Then the result contains
 
   7           | category | type    | display_name |
 
   8           | place    | country | United States |
 
  10     Scenario: Reverse - No TIGER house number for zoom < 18
 
  11         When reverse geocoding 32.4752389363,-86.4810198619
 
  14         Then the result contains
 
  15           | osm_type | category |
 
  17         And the result contains in field address
 
  18           | road                | postcode | country_code |
 
  19           | Upper Kingston Road | 36067    | us |
 
  21     Scenario: Reverse - Address with non-numerical house number
 
  22         When reverse geocoding 47.107465,9.52838521614
 
  23         Then the result contains in field address
 
  24           | house_number | road |
 
  25           | 39A/B        | Dorfstrasse |
 
  27     Scenario: Reverse - Address with numerical house number
 
  28         When reverse geocoding 47.168440329479594,9.511551699184338
 
  29         Then the result contains in field address
 
  30           | house_number | road |
 
  33     Scenario Outline: Reverse - Zoom levels below 5 result in country
 
  34         When reverse geocoding 47.16,9.51
 
  37         Then the result contains
 
  49     Scenario: Reverse - When on a street, the closest interpolation is shown
 
  50         When reverse geocoding 47.118457166193245,9.570678289621355
 
  53         Then the result contains
 
  55          | 1021, Grosssteg, Sücka, Triesenberg, Oberland, 9497, Liechtenstein |
 
  58     Scenario: Reverse - Interpolations do not override house numbers when they are closer
 
  59         When reverse geocoding 47.11778,9.57255
 
  62         Then the result contains
 
  64          | 5, Grosssteg, Steg, Triesenberg, Oberland, 9497, Liechtenstein |
 
  66     Scenario: Reverse - Interpolations do not override house numbers when they are closer (2)
 
  67         When reverse geocoding 47.11834,9.57167
 
  70         Then the result contains
 
  72          | 3, Grosssteg, Sücka, Triesenberg, Oberland, 9497, Liechtenstein |
 
  74     Scenario: Reverse - When on a street with zoom 18, the closest housenumber is returned
 
  75         When reverse geocoding 47.11755503977281,9.572722250405036
 
  78         Then the result contains in field address