]> git.openstreetmap.org Git - nominatim.git/blobdiff - tests/features/api/reverse.feature
add test for TIGER reverse with lower zoom
[nominatim.git] / tests / features / api / reverse.feature
index 32aff61ceff9d863458cf63db3a25b15827664bb..f8c4f3883a7a6b4b6fb0bffb8ce70034e87421ee 100644 (file)
@@ -16,18 +16,23 @@ Feature: Reverse geocoding
         Given the request parameters
           | addressdetails
           | 1
         Given the request parameters
           | addressdetails
           | 1
-        When looking up jsonv2 coordinates 40.6863624710666,-112.060005720023
-        # Then exactly 1 result is returned
-        # Then result addresses contain
-        # | ID | house_number | road               | postcode | country_code
-        # | 0  | 7094         | Kings Estate Drive | 84128    | us
-        Then results contain
-          | type | house
-        And results contain
-          | addresstype | place
-        And results contain
-          | road | Kings Estate Drive
-        And results contain
-          | house_number | 7094
-        And results contain
-          | postcode | 84128
+        When looking up coordinates 40.6863624710666,-112.060005720023
+        And exactly 1 result is returned
+        And result addresses contain
+          | ID | house_number | road               | postcode | country_code
+          | 0  | 7094         | Kings Estate Drive | 84128    | us
+        And result 0 has not attributes osm_id,osm_type
+
+
+    @Tiger
+    Scenario: No TIGER house number for zoom < 18
+        Given the request parameters
+          | addressdetails | zoom
+          | 1              | 17
+        When looking up coordinates 40.6863624710666,-112.060005720023
+        And exactly 1 result is returned
+        And result addresses contain
+          | ID | road               | postcode | country_code
+          | 0  | Kings Estate Drive | 84128    | us
+        And result 0 has attributes osm_id,osm_type
+