]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/bdd/api/search/postcode.feature
Merge pull request #1729 from lonvia/fix-details-link-for-boundaries
[nominatim.git] / test / bdd / api / search / postcode.feature
index f92aff3cba2151090530e6495b62a635626ead1a..e70495f63890f15c958bb75a86ec072963fca68f 100644 (file)
@@ -18,3 +18,30 @@ Feature: Searches with postcodes
             | country_code |
             | li           |
 
             | country_code |
             | li           |
 
+    Scenario: Postcode search with country code restriction
+        When sending json search query "9490" with address
+            | countrycodes |
+            | li |
+        Then result addresses contain
+            | country_code |
+            | li           |
+
+    Scenario: Postcode search with bounded viewbox restriction
+        When sending json search query "9486" with address
+          | bounded | viewbox |
+          | 1       | 9.55,47.20,9.58,47.22 |
+        Then result addresses contain
+            | postcode |
+            | 9486     |
+        When sending json search query "9486" with address
+          | bounded | viewbox                 |
+          | 1       | 5.00,20.00,6.00,21.00 |
+        Then exactly 0 results are returned
+
+    Scenario: Postcode search with structured query
+        When sending json search query "" with address
+            | postalcode | country |
+            | 9490       | li |
+        Then result addresses contain
+            | country_code | postcode |
+            | li           | 9490     |