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 |
27 | 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 |
42 | city_district | Wandsbek |
44 | country | Deutschland |
48 Scenario: TIGER house number
49 When sending json search query "323 22nd Street Southwest, Huron"
54 Scenario: Search with class-type feature
55 When sending jsonv2 search query "Hotel in California"
60 Scenario: Search with specific amenity
61 When sending json search query "[restaurant] Vaduz" with address
62 Then result addresses contain
67 | amenity | restaurant |
69 Scenario: Search with key-value amenity
70 When sending json search query "[shop=hifi] hamburg"
75 Scenario: With multiple amenity search only the first is used
76 When sending json search query "[shop=hifi] [church] hamburg"
81 Scenario: With multiple amenity search only the first is used
82 When sending json search query "[church] [restaurant] hamburg"
85 | amenity | place_of_worship |
87 Scenario: POI search near given coordinate
88 When sending json search query "restaurant near 47.16712,9.51100"
91 | amenity | restaurant |
93 Scenario: Arbitrary key/value search near given coordinate
94 When sending json search query "[man_made=mast] 47.15739,9.61264"
99 Scenario: Arbitrary key/value search near a road
100 When sending json search query "[leisure=table_soccer_table] immenbusch"
103 | leisure | table_soccer_table |
105 Scenario: Ignore other country codes in structured search with country
106 When sending json search query ""
109 Then exactly 0 results are returned
111 Scenario: Ignore country searches when query is restricted to countries
112 When sending json search query "de"
115 Then exactly 0 results are returned
117 # https://trac.openstreetmap.org/ticket/5094
118 Scenario: housenumbers are ordered by complete match first
119 When sending json search query "6395 geminis, montevideo" with address
120 Then result addresses contain
121 | ID | house_number |