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 |
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 |
44 | city_district | Wandsbek |
46 | country | Deutschland |
49 Scenario: With missing housenumber search falls back to road
50 When sending json search query "342 rocha, santa lucia" with address
51 Then address of result 0 is
54 | city | Santa Lucía |
61 Scenario: TIGER house number
62 When sending json search query "323 22nd Street Southwest, Huron"
67 Scenario: Search with class-type feature
68 When sending jsonv2 search query "Hotel in California"
73 Scenario: Search with specific amenity
74 When sending json search query "[restaurant] Vaduz" with address
75 Then result addresses contain
80 | amenity | restaurant |
82 Scenario: Search with key-value amenity
83 When sending json search query "[shop=hifi] hamburg"
88 Scenario: With multiple amenity search only the first is used
89 When sending json search query "[shop=hifi] [church] hamburg"
94 Scenario: With multiple amenity search only the first is used
95 When sending json search query "[church] [restaurant] hamburg"
98 | amenity | place_of_worship |
100 Scenario: POI search near given coordinate
101 When sending json search query "restaurant near 47.16712,9.51100"
104 | amenity | restaurant |
106 Scenario: Arbitrary key/value search near given coordinate
107 When sending json search query "[man_made=mast] 47.15739° N 9.61264° E"
112 Scenario: Arbitrary key/value search near given coordinate and named place
113 When sending json search query "[man_made=mast] amerlugalpe 47° 9′ 26″ N 9° 36′ 45″ E"
118 Scenario: Name search near given coordinate
119 When sending json search query "amerlugalpe, N 47.15739° E 9.61264°"
120 Then exactly 1 result is returned
122 Scenario: Name search near given coordinate without result
123 When sending json search query "amerlugalpe, N 47 15 7 W 9 61 26"
124 Then exactly 0 results are returned
126 Scenario: Arbitrary key/value search near a road
127 When sending json search query "[leisure=table_soccer_table] immenbusch"
130 | leisure | table_soccer_table |
132 Scenario: Ignore other country codes in structured search with country
133 When sending json search query ""
136 Then exactly 0 results are returned
138 Scenario: Ignore country searches when query is restricted to countries
139 When sending json search query "de"
142 Then exactly 0 results are returned
144 # https://trac.openstreetmap.org/ticket/5094
145 Scenario: housenumbers are ordered by complete match first
146 When sending json search query "6395 geminis, montevideo" with address
147 Then result addresses contain
148 | ID | house_number |