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 |
27 | neighbourhood | Auenviertel |
30 | country | Deutschland |
33 Scenario: House number interpolation odd
34 When sending json search query "Schellingstr 73, Hamburg" with address
37 Then address of result 0 is
40 | road | Schellingstraße |
41 | neighbourhood | Auenviertel |
45 | country | Deutschland |
48 Scenario: With missing housenumber search falls back to road
49 When sending json search query "342 rocha, santa lucia" with address
50 Then address of result 0 is
53 | city | Santa Lucía |
59 Scenario Outline: Housenumber 0 can be found
60 When sending <format> search query "Pham Hung Road 0" with address
64 And result addresses contain
76 Scenario: TIGER house number
77 When sending json search query "323 22nd Street Southwest, Huron"
82 Scenario: Search with class-type feature
83 When sending jsonv2 search query "Hotel in California"
88 Scenario: Search with specific amenity
89 When sending json search query "[restaurant] Vaduz" with address
90 Then result addresses contain
95 | amenity | restaurant |
97 Scenario: Search with key-value amenity
98 When sending json search query "[shop=hifi] hamburg"
103 Scenario: With multiple amenity search only the first is used
104 When sending json search query "[shop=hifi] [church] hamburg"
109 Scenario: With multiple amenity search only the first is used
110 When sending json search query "[church] [restaurant] hamburg"
113 | amenity | place_of_worship |
115 Scenario: POI search near given coordinate
116 When sending json search query "restaurant near 47.16712,9.51100"
119 | amenity | restaurant |
121 Scenario: Arbitrary key/value search near given coordinate
122 When sending json search query "[man_made=mast] 47.15739° N 9.61264° E"
127 Scenario: Arbitrary key/value search near given coordinate and named place
128 When sending json search query "[man_made=mast] amerlugalpe 47° 9′ 26″ N 9° 36′ 45″ E"
133 Scenario: Name search near given coordinate
134 When sending json search query "amerlugalpe, N 47.15739° E 9.61264°"
135 Then exactly 1 result is returned
137 Scenario: Name search near given coordinate without result
138 When sending json search query "amerlugalpe, N 47 15 7 W 9 61 26"
139 Then exactly 0 results are returned
141 Scenario: Arbitrary key/value search near a road
142 When sending json search query "[leisure=table_soccer_table] immenbusch"
145 | leisure | table_soccer_table |
147 Scenario: Ignore other country codes in structured search with country
148 When sending json search query ""
151 Then exactly 0 results are returned
153 Scenario: Ignore country searches when query is restricted to countries
154 When sending json search query "de"
157 Then exactly 0 results are returned
159 # https://trac.openstreetmap.org/ticket/5094
160 Scenario: housenumbers are ordered by complete match first
161 When sending json search query "6395 geminis, montevideo" with address
162 Then result addresses contain
163 | ID | house_number |
167 Scenario Outline: Same Searches with white spaces
168 When sending json search query "<data>"
169 Then exactly 1 result is returned
176 | amerlugalpe, N 47.15739° E 9.61264° |
177 | amerlugalpe, N 47.15739° E 9.61264° |
178 | amerlugalpe , N 47.15739° E 9.61264° |
179 | amerlugalpe, N 47.15739° E 9.61264° |
180 | amerlugalpe
\v, N 47.15739° E 9.61264° |
182 Scenario: Searched with white spaces
183 When sending json search query "22nd Street Southwest
\v,
\fHuron"
186 | highway | residential |
190 Scenario: Addressdetails always return the place type
191 When sending json search query "Rotherbaum" with address
192 Then result addresses contain