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 |
58 Scenario Outline: Housenumber 0 can be found
59 When sending <format> search query "Pham Hung Road 0" with address
63 And result addresses contain
75 Scenario: TIGER house number
76 When sending json search query "323 22nd Street Southwest, Huron"
81 Scenario: Search with class-type feature
82 When sending jsonv2 search query "Hotel in California"
87 Scenario: Search with specific amenity
88 When sending json search query "[restaurant] Vaduz" with address
89 Then result addresses contain
94 | amenity | restaurant |
96 Scenario: Search with key-value amenity
97 When sending json search query "[shop=hifi] hamburg"
102 Scenario: With multiple amenity search only the first is used
103 When sending json search query "[shop=hifi] [church] hamburg"
108 Scenario: With multiple amenity search only the first is used
109 When sending json search query "[church] [restaurant] hamburg"
112 | amenity | place_of_worship |
114 Scenario: POI search near given coordinate
115 When sending json search query "restaurant near 47.16712,9.51100"
118 | amenity | restaurant |
120 Scenario: Arbitrary key/value search near given coordinate
121 When sending json search query "[man_made=mast] 47.15739° N 9.61264° E"
126 Scenario: Arbitrary key/value search near given coordinate and named place
127 When sending json search query "[man_made=mast] amerlugalpe 47° 9′ 26″ N 9° 36′ 45″ E"
132 Scenario: Name search near given coordinate
133 When sending json search query "amerlugalpe, N 47.15739° E 9.61264°"
134 Then exactly 1 result is returned
136 Scenario: Name search near given coordinate without result
137 When sending json search query "amerlugalpe, N 47 15 7 W 9 61 26"
138 Then exactly 0 results are returned
140 Scenario: Arbitrary key/value search near a road
141 When sending json search query "[leisure=table_soccer_table] immenbusch"
144 | leisure | table_soccer_table |
146 Scenario: Ignore other country codes in structured search with country
147 When sending json search query ""
150 Then exactly 0 results are returned
152 Scenario: Ignore country searches when query is restricted to countries
153 When sending json search query "de"
156 Then exactly 0 results are returned
158 # https://trac.openstreetmap.org/ticket/5094
159 Scenario: housenumbers are ordered by complete match first
160 When sending json search query "6395 geminis, montevideo" with address
161 Then result addresses contain
162 | ID | house_number |