]> git.openstreetmap.org Git - nominatim.git/blob - test/bdd/api/search/postcode.feature
allow nginx to serve files without php extensions
[nominatim.git] / test / bdd / api / search / postcode.feature
1 @APIDB
2 Feature: Searches with postcodes
3     Various searches involving postcodes
4
5     Scenario: US 5+4 ZIP codes are shortened to 5 ZIP codes if not found
6         When sending json search query "57701 1111, us" with address
7         Then result addresses contain
8             | postcode |
9             | 57701    |
10
11     Scenario: Postcode search with address
12         When sending json search query "9486, mauren"
13         Then at least 1 result is returned
14
15     Scenario: Postcode search with country
16         When sending json search query "9486, li" with address
17         Then result addresses contain
18             | country_code |
19             | li           |
20
21     Scenario: Postcode search with country code restriction
22         When sending json search query "9490" with address
23             | countrycodes |
24             | li |
25         Then result addresses contain
26             | country_code |
27             | li           |
28
29     Scenario: Postcode search with structured query
30         When sending json search query "" with address
31             | postalcode | country |
32             | 9490       | li |
33         Then result addresses contain
34             | country_code | postcode |
35             | li           | 9490     |