]> git.openstreetmap.org Git - nominatim.git/blob - tests/features/api/search_structured.feature
only address features can be linked with placex
[nominatim.git] / tests / features / api / search_structured.feature
1 Feature: Structured search queries
2     Testing correctness of results with
3     structured queries
4
5     Scenario: Country only
6         When sending json structured query with address
7           | country
8           | Canada
9         Then address of result 0 is
10           | type         | value
11           | country      | Canada
12           | country_code | ca
13
14     Scenario: Postcode only
15         When sending json structured query with address
16           | postalcode
17           | 22547
18         Then at least 1 result is returned 
19         And results contain
20           | type
21           | post(al_)?code
22         And result addresses contain
23           | postcode
24           | 22547
25
26
27     Scenario: Street, postcode and country
28         When sending xml structured query with address
29           | street          | postalcode | country
30           | Old Palace Road | GU2 7UP    | United Kingdom
31         Then at least 1 result is returned
32         Then result header contains
33           | attr        | value
34           | querystring | Old Palace Road, GU2 7UP, United Kingdom
35
36
37     Scenario: gihub #176
38         When sending json structured query with address
39           | city
40           | Washington
41         Then at least 1 result is returned