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 |
17 Scenario: House number interpolation even
18 When sending json search query "Schellingstr 86, Hamburg" with address
21 Then address of result 0 is
24 | road | Schellingstraße |
25 | neighbourhood | Auenviertel |
28 | city_district | Wandsbek |
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 |
40 | neighbourhood | Auenviertel |
43 | city_district | Wandsbek |
44 | country | Deutschland |
47 Scenario: With missing housenumber search falls back to road
48 When sending json search query "342 rocha, santa lucia" with address
49 Then address of result 0 is
52 | city | Santa Lucía |
59 Scenario: TIGER house number
60 When sending json search query "323 22nd Street Southwest, Huron"
65 Scenario: Search with class-type feature
66 When sending jsonv2 search query "Hotel in California"
71 Scenario: Search with specific amenity
72 When sending json search query "[restaurant] Vaduz" with address
73 Then result addresses contain
78 | amenity | restaurant |
80 Scenario: Search with key-value amenity
81 When sending json search query "[shop=hifi] hamburg"
86 Scenario: With multiple amenity search only the first is used
87 When sending json search query "[shop=hifi] [church] hamburg"
92 Scenario: With multiple amenity search only the first is used
93 When sending json search query "[church] [restaurant] hamburg"
96 | amenity | place_of_worship |
98 Scenario: POI search near given coordinate
99 When sending json search query "restaurant near 47.16712,9.51100"
102 | amenity | restaurant |
104 Scenario: Arbitrary key/value search near given coordinate
105 When sending json search query "[man_made=mast] 47.15739° N 9.61264° E"
110 Scenario: Arbitrary key/value search near given coordinate and named place
111 When sending json search query "[man_made=mast] amerlugalpe 47° 9′ 26″ N 9° 36′ 45″ E"
116 Scenario: Name search near given coordinate
117 When sending json search query "amerlugalpe, N 47.15739° E 9.61264°"
118 Then exactly 1 result is returned
120 Scenario: Name search near given coordinate without result
121 When sending json search query "amerlugalpe, N 47 15 7 W 9 61 26"
122 Then exactly 0 results are returned
124 Scenario: Arbitrary key/value search near a road
125 When sending json search query "[leisure=table_soccer_table] immenbusch"
128 | leisure | table_soccer_table |
130 Scenario: Ignore other country codes in structured search with country
131 When sending json search query ""
134 Then exactly 0 results are returned
136 Scenario: Ignore country searches when query is restricted to countries
137 When sending json search query "de"
140 Then exactly 0 results are returned
142 # https://trac.openstreetmap.org/ticket/5094
143 Scenario: housenumbers are ordered by complete match first
144 When sending json search query "6395 geminis, montevideo" with address
145 Then result addresses contain
146 | ID | house_number |