]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/bdd/api/search/queries.feature
update documentation for geocodejson
[nominatim.git] / test / bdd / api / search / queries.feature
index cf5a00c9c093ebb37be08bc43d9a8b4b726114f4..e0f5846685cadb0d20d5d8c154b5e2dad9dc8a0d 100644 (file)
@@ -10,6 +10,7 @@ Feature: Search queries
           | type         | value |
           | house_number | 2 |
           | hamlet       | Steinwald |
           | type         | value |
           | house_number | 2 |
           | hamlet       | Steinwald |
+          | village      | Göfis |
           | postcode     | 6811 |
           | country      | Austria |
           | country_code | at |
           | postcode     | 6811 |
           | country      | Austria |
           | country_code | at |
@@ -25,7 +26,7 @@ Feature: Search queries
           | neighbourhood | Auenviertel |
           | suburb        | Eilbek |
           | postcode      | 22089 |
           | neighbourhood | Auenviertel |
           | suburb        | Eilbek |
           | postcode      | 22089 |
-          | city_district | Wandsbek |
+          | city          | Hamburg |
           | country       | Deutschland |
           | country_code  | de |
 
           | country       | Deutschland |
           | country_code  | de |
 
@@ -40,7 +41,7 @@ Feature: Search queries
           | neighbourhood | Auenviertel |
           | suburb        | Eilbek |
           | postcode      | 22089 |
           | neighbourhood | Auenviertel |
           | suburb        | Eilbek |
           | postcode      | 22089 |
-          | city_district | Wandsbek |
+          | city          | Hamburg |
           | country       | Deutschland |
           | country_code  | de |
 
           | country       | Deutschland |
           | country_code  | de |
 
@@ -55,6 +56,22 @@ Feature: Search queries
           | country      | Uruguay |
           | country_code | uy |
 
           | country      | Uruguay |
           | country_code | uy |
 
+    Scenario Outline: Housenumber 0 can be found
+        When sending <format> search query "Pham Hung Road 0" with address
+        Then results contain
+          | display_name |
+          | ^.*, 0,.* |
+        And result addresses contain
+          | house_number |
+          | 0     |
+
+    Examples:
+        | format |
+        | xml |
+        | json |
+        | jsonv2 |
+        | geojson |
+
     @Tiger
     Scenario: TIGER house number
         When sending json search query "323 22nd Street Southwest, Huron"
     @Tiger
     Scenario: TIGER house number
         When sending json search query "323 22nd Street Southwest, Huron"