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 |
29 | country | Deutschland |
32 Scenario: House number interpolation odd
33 When sending json search query "Schellingstr 73, Hamburg" with address
36 Then address of result 0 is
39 | road | Schellingstraße |
43 | country | Deutschland |
46 Scenario: With missing housenumber search falls back to road
47 When sending json search query "342 rocha, santa lucia" with address
48 Then address of result 0 is
51 | city | Santa Lucía |
57 Scenario Outline: Housenumber 0 can be found
58 When sending <format> search query "Pham Hung Road 0" with address
62 And result addresses contain
74 Scenario: TIGER house number
75 When sending json search query "323 22nd Street Southwest, Huron"
80 Scenario: Search with class-type feature
81 When sending jsonv2 search query "Hotel in California"
86 Scenario: Search with specific amenity
87 When sending json search query "[restaurant] Vaduz" with address
88 Then result addresses contain
93 | amenity | restaurant |
95 Scenario: Search with key-value amenity
96 When sending json search query "[shop=hifi] hamburg"
101 Scenario: With multiple amenity search only the first is used
102 When sending json search query "[shop=hifi] [church] hamburg"
107 Scenario: With multiple amenity search only the first is used
108 When sending json search query "[church] [restaurant] hamburg"
111 | amenity | place_of_worship |
113 Scenario: POI search near given coordinate
114 When sending json search query "restaurant near 47.16712,9.51100"
117 | amenity | restaurant |
119 Scenario: Arbitrary key/value search near given coordinate
120 When sending json search query "[man_made=mast] 47.15739° N 9.61264° E"
125 Scenario: Arbitrary key/value search near given coordinate and named place
126 When sending json search query "[man_made=mast] amerlugalpe 47° 9′ 26″ N 9° 36′ 45″ E"
131 Scenario: Name search near given coordinate
132 When sending json search query "amerlugalpe, N 47.15739° E 9.61264°"
133 Then exactly 1 result is returned
135 Scenario: Name search near given coordinate without result
136 When sending json search query "amerlugalpe, N 47 15 7 W 9 61 26"
137 Then exactly 0 results are returned
139 Scenario: Arbitrary key/value search near a road
140 When sending json search query "[leisure=table_soccer_table] immenbusch"
143 | leisure | table_soccer_table |
145 Scenario: Ignore other country codes in structured search with country
146 When sending json search query ""
149 Then exactly 0 results are returned
151 Scenario: Ignore country searches when query is restricted to countries
152 When sending json search query "de"
155 Then exactly 0 results are returned
157 # https://trac.openstreetmap.org/ticket/5094
158 Scenario: housenumbers are ordered by complete match first
159 When sending json search query "6395 geminis, montevideo" with address
160 Then result addresses contain
161 | ID | house_number |
165 Scenario Outline: Same Searches with white spaces
166 When sending json search query "<data>"
167 Then exactly 1 result is returned
174 | amerlugalpe, N 47.15739° E 9.61264° |
175 | amerlugalpe, N 47.15739° E 9.61264° |
176 | amerlugalpe , N 47.15739° E 9.61264° |
177 | amerlugalpe, N 47.15739° E 9.61264° |
178 | amerlugalpe
\v, N 47.15739° E 9.61264° |
180 Scenario: Searched with white spaces
181 When sending json search query "22nd Street Southwest
\v,
\fHuron"
184 | highway | residential |