mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-29 08:36:24 +03:00
53 lines
1.8 KiB
Gherkin
53 lines
1.8 KiB
Gherkin
@SQLITE
|
|
@APIDB
|
|
Feature: Searches with postcodes
|
|
Various searches involving postcodes
|
|
|
|
@Fail
|
|
Scenario: US 5+4 ZIP codes are shortened to 5 ZIP codes if not found
|
|
When sending json search query "36067 1111, us" with address
|
|
Then result addresses contain
|
|
| postcode |
|
|
| 36067 |
|
|
And results contain
|
|
| type |
|
|
| postcode |
|
|
|
|
Scenario: Postcode search with address
|
|
When sending json search query "9486, mauren"
|
|
Then at least 1 result is returned
|
|
|
|
Scenario: Postcode search with country
|
|
When sending json search query "9486, li" with address
|
|
Then result addresses contain
|
|
| 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 |
|