2 Feature: Search queries
3 Generic search result correctness
5 Scenario: House number search for non-street address
6 When sending json search query "2 Steinwald, Austria" with address
9 Then address of result 0 is
12 | hamlet | Steinwald |
18 Scenario: House number interpolation even
19 When sending json search query "Schellingstr 86, Hamburg" with address
22 Then address of result 0 is
25 | road | Schellingstraße |
26 | neighbourhood | Auenviertel |
29 | city_district | Wandsbek |
31 | country | Deutschland |
34 Scenario: House number interpolation odd
35 When sending json search query "Schellingstr 73, Hamburg" with address
38 Then address of result 0 is
41 | road | Schellingstraße |
42 | neighbourhood | Auenviertel |
45 | city_district | Wandsbek |
47 | country | Deutschland |
50 Scenario: With missing housenumber search falls back to road
51 When sending json search query "342 rocha, santa lucia" with address
52 Then address of result 0 is
55 | city | Santa Lucía |
61 Scenario Outline: Housenumber 0 can be found
62 When sending <format> search query "Pham Hung Road 0" with address
66 And result addresses contain
78 Scenario: TIGER house number
79 When sending json search query "323 22nd Street Southwest, Huron"
84 Scenario: Search with class-type feature
85 When sending jsonv2 search query "Hotel in California"
90 Scenario: Search with specific amenity
91 When sending json search query "[restaurant] Vaduz" with address
92 Then result addresses contain
97 | amenity | restaurant |
99 Scenario: Search with key-value amenity
100 When sending json search query "[shop=hifi] hamburg"
105 Scenario: With multiple amenity search only the first is used
106 When sending json search query "[shop=hifi] [church] hamburg"
111 Scenario: With multiple amenity search only the first is used
112 When sending json search query "[church] [restaurant] hamburg"
115 | amenity | place_of_worship |
117 Scenario: POI search near given coordinate
118 When sending json search query "restaurant near 47.16712,9.51100"
121 | amenity | restaurant |
123 Scenario: Arbitrary key/value search near given coordinate
124 When sending json search query "[man_made=mast] 47.15739° N 9.61264° E"
129 Scenario: Arbitrary key/value search near given coordinate and named place
130 When sending json search query "[man_made=mast] amerlugalpe 47° 9′ 26″ N 9° 36′ 45″ E"
135 Scenario: Name search near given coordinate
136 When sending json search query "amerlugalpe, N 47.15739° E 9.61264°"
137 Then exactly 1 result is returned
139 Scenario: Name search near given coordinate without result
140 When sending json search query "amerlugalpe, N 47 15 7 W 9 61 26"
141 Then exactly 0 results are returned
143 Scenario: Arbitrary key/value search near a road
144 When sending json search query "[leisure=table_soccer_table] immenbusch"
147 | leisure | table_soccer_table |
149 Scenario: Ignore other country codes in structured search with country
150 When sending json search query ""
153 Then exactly 0 results are returned
155 Scenario: Ignore country searches when query is restricted to countries
156 When sending json search query "de"
159 Then exactly 0 results are returned
161 # https://trac.openstreetmap.org/ticket/5094
162 Scenario: housenumbers are ordered by complete match first
163 When sending json search query "6395 geminis, montevideo" with address
164 Then result addresses contain
165 | ID | house_number |