]> git.openstreetmap.org Git - nominatim.git/blob - tests/features/api/search.feature
Merge remote-tracking branch 'upstream/master'
[nominatim.git] / tests / features / api / search.feature
1 Feature: Search queries
2     Testing correctness of results
3
4     Scenario: UK House number search
5         When sending json search query "27 Thoresby Road, Broxtowe" with address
6         Then address of result 0 contains
7           | type         | value
8           | house_number | 27
9           | road         | Thoresby Road
10           | city         | Broxtowe
11           | state        | England
12           | country      | United Kingdom
13           | country_code | gb
14
15
16     Scenario: House number search for non-street address
17         Given the request parameters
18           | accept-language
19           | en        
20         When sending json search query "4 Pomocnia, Poland" with address
21         Then address of result 0 is
22           | type         | value
23           | house_number | 4
24           | suburb       | Pomocnia
25           | county       | gmina Pokrzywnica
26           | state        | Masovian Voivodeship
27           | postcode     | 06-121
28           | country      | Poland
29           | country_code | pl
30
31     Scenario: House number interpolation even
32         Given the request parameters
33           | accept-language
34           | en        
35         When sending json search query "140 rue Don Bosco, Saguenay" with address
36         Then address of result 0 contains
37           | type         | value
38           | house_number | 140
39           | road         | rue Don Bosco
40           | city         | Saguenay
41           | state        | Quebec
42           | country      | Canada
43           | country_code | ca
44
45     Scenario: House number interpolation odd
46         Given the request parameters
47           | accept-language
48           | en        
49         When sending json search query "141 rue Don Bosco, Saguenay" with address
50         Then address of result 0 contains
51           | type         | value
52           | house_number | 141
53           | road         | rue Don Bosco
54           | city         | Saguenay
55           | state        | Quebec
56           | country      | Canada
57           | country_code | ca
58
59     Scenario: TIGER house number
60         When sending json search query "3 West Victory Way, Craig"
61         Then result 0 has not attributes osm_id,osm_type
62
63     Scenario: TIGER house number (road fallback)
64         When sending json search query "3030 West Victory Way, Craig"
65         Then result 0 has attributes osm_id,osm_type
66
67     Scenario: Expansion of Illinois
68         Given the request parameters
69           | accept-language
70           | en        
71         When sending json search query "il, us"
72         Then results contain
73           | ID | display_name
74           | 0  | Illinois.*