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 contains
25 | road | Schellingstraße |
28 | country | Deutschland |
31 Scenario: House number interpolation odd
32 When sending json search query "Schellingstr 73, Hamburg" with address
35 Then address of result 0 contains
38 | road | Schellingstraße |
41 | country | Deutschland |
44 Scenario: With missing housenumber search falls back to road
45 When sending json search query "342 rocha, santa lucia" with address
46 Then address of result 0 is
49 | city | Santa Lucía |
55 Scenario Outline: Housenumber 0 can be found
56 When sending <format> search query "Pham Hung Road 0" with address
60 And result addresses contain
72 Scenario: TIGER house number
73 When sending json search query "323 22nd Street Southwest, Huron"
78 Scenario: Search with class-type feature
79 When sending jsonv2 search query "Hotel in California"
84 Scenario: Search with specific amenity
85 When sending json search query "[restaurant] Vaduz" with address
86 Then result addresses contain
91 | amenity | restaurant |
93 Scenario: Search with key-value amenity
94 When sending json search query "[shop=hifi] hamburg"
99 Scenario: With multiple amenity search only the first is used
100 When sending json search query "[shop=hifi] [church] hamburg"
105 Scenario: With multiple amenity search only the first is used
106 When sending json search query "[church] [restaurant] hamburg"
109 | amenity | place_of_worship |
111 Scenario: POI search near given coordinate
112 When sending json search query "restaurant near 47.16712,9.51100"
115 | amenity | restaurant |
117 Scenario: Arbitrary key/value search near given coordinate
118 When sending json search query "[man_made=mast] 47.15739° N 9.61264° E"
123 Scenario: Arbitrary key/value search near given coordinate and named place
124 When sending json search query "[man_made=mast] amerlugalpe 47° 9′ 26″ N 9° 36′ 45″ E"
129 Scenario: Name search near given coordinate
130 When sending json search query "amerlugalpe, N 47.15739° E 9.61264°"
131 Then exactly 1 result is returned
133 Scenario: Name search near given coordinate without result
134 When sending json search query "amerlugalpe, N 47 15 7 W 9 61 26"
135 Then exactly 0 results are returned
137 Scenario: Arbitrary key/value search near a road
138 When sending json search query "[leisure=table_soccer_table] immenbusch"
141 | leisure | table_soccer_table |
143 Scenario: Ignore other country codes in structured search with country
144 When sending json search query ""
147 Then exactly 0 results are returned
149 Scenario: Ignore country searches when query is restricted to countries
150 When sending json search query "de"
153 Then exactly 0 results are returned
155 # https://trac.openstreetmap.org/ticket/5094
156 Scenario: housenumbers are ordered by complete match first
157 When sending json search query "6395 geminis, montevideo" with address
158 Then result addresses contain
159 | ID | house_number |
163 Scenario Outline: Same Searches with white spaces
164 When sending json search query "<data>"
165 Then exactly 1 result is returned
172 | amerlugalpe, N 47.15739° E 9.61264° |
173 | amerlugalpe, N 47.15739° E 9.61264° |
174 | amerlugalpe , N 47.15739° E 9.61264° |
175 | amerlugalpe, N 47.15739° E 9.61264° |
176 | amerlugalpe
\v, N 47.15739° E 9.61264° |
178 Scenario: Searched with white spaces
179 When sending json search query "22nd Street Southwest
\v,
\fHuron"
182 | highway | residential |
186 Scenario: Addressdetails always return the place type
187 When sending json search query "Rotherbaum" with address
188 Then result addresses contain