1 Feature: API regression tests
2 Tests error cases reported in tickets.
5 When sending json search query "89 River Avenue, Hoddesdon, Hertfordshire, EN11 0JT"
6 Then at least 1 result is returned
9 When sending json search query "East Harvard Avenue, Denver"
10 Then more than 2 results are returned
13 When sending xml search query "Borlänge Kommun"
19 When sending json search query "Lange Straße, Bamberg" with address
20 Then result addresses contain
25 When sending json search query "pad, germany"
27 | ID | class | display_name
28 | 0 | aeroway | Paderborn/Lippstadt,.*
31 When sending json search query "Johnsons Close, hackbridge" with address
32 Then result addresses contain
37 Scenario Outline: trac #2586
38 When sending json search query "<query>" with address
39 Then result addresses contain
48 Scenario: trac #2628 (1)
49 When sending json search query "Adam Kraft Str" with address
50 Then result addresses contain
52 | 0 | Adam-Kraft-Straße
54 Scenario: trac #2628 (2)
55 When sending json search query "Maxfeldstr. 5, Nürnberg" with address
56 Then result addresses contain
57 | ID | house_number | road | city
58 | 0 | 5 | Maxfeldstraße | Nürnberg
61 When sending json search query "Nöthnitzer Str. 40, 01187 Dresden" with address
62 Then result addresses contain
63 | ID | house_number | road | city
64 | 0 | 40 | Nöthnitzer Straße | Dresden
66 Scenario Outline: trac #2667
67 When sending json search query "<query>" with address
68 Then result addresses contain
74 | 16 | 16 Woodpecker Way, Cambourne
75 | 14906 | 14906, 114 Street Northwest, Edmonton, Alberta, Canada
76 | 14904 | 14904, 114 Street Northwest, Edmonton, Alberta, Canada
77 | 15022 | 15022, 114 Street Northwest, Edmonton, Alberta, Canada
78 | 15024 | 15024, 114 Street Northwest, Edmonton, Alberta, Canada
81 When sending json search query "kirchstraße troisdorf Germany"
84 | 0 | .*, Troisdorf, .*
87 When sending json search query "6а, полуботка, чернигов" with address
88 Then result addresses contain
93 When looking up coordinates 49.0942079697809,8.27565898861822
94 Then result addresses contain
95 | ID | road | village | country
96 | 0 | Daimlerstraße | Jockgrim | Deutschland
99 When sending json search query "4008"
102 | 0 | place | postcode
105 When sending json search query "Philippstr.4, 52349 Düren" with address
106 Then result addresses contain
108 | 0 | Philippstraße | Düren
111 When sending json search query "528, Merkley Drive, K4A 1N5,CA" with address
112 Then result addresses contain
113 | ID | house_number | road | postcode | country
114 | 0 | 528 | Merkley Drive | K4A 1N5 | Canada
117 When sending json search query "K4A 1N5,CA"
119 | ID | class | type | display_name
120 | 0 | place | postcode | .*, Canada
123 When sending json search query "Leliestraat 31, Zwolle" with address
124 Then result addresses contain
129 When sending json search query "berlinerstrasse, leipzig" with address
130 Then result addresses contain
132 | 0 | Berliner Straße
135 When looking up coordinates -33.906895553,150.99609375
136 Then result addresses contain
137 | ID | city | postcode | country
138 | 0 | [^0-9]* | 2197 | Australia
141 When sending json search query "Azadi Square, Faruj" with address
142 Then result addresses contain
144 | 0 | ميدان آزادي | فاروج
147 | 0 | 37.2323,58.2193 +-1km
150 When sending json search query "Ohmstraße 7, Berlin" with address
151 Then at least 2 results are returned
152 And result addresses contain
153 | house_number | road | state
154 | 7 | Ohmstraße | Berlin
157 When sending json search query "Soccer City"
159 | ID | class | type | latlon
160 | 0 | leisure | stadium | -26.2347261,27.982645 +-50m
163 When sending json search query "Old Way, Frinton"
165 | ID | class | latlon
166 | 0 | highway | 51.8324206,1.2447352 +-100m
169 Given the request parameters
172 When sending json search query "sy"
173 Then exactly 0 results are returned
176 When sending json search query "Goedestraat 41-BS, Utrecht" with address
177 Then result addresses contain
178 | house_number | road | city
179 | 41-BS | Goedestraat | Utrecht
182 Scenario Outline: github #36
183 When sending json search query "<query>" with address
184 Then result addresses contain
186 | 0 | Seegasse | Wieselburg-Land
190 | Seegasse, Gemeinde Wieselburg-Land
191 | Seegasse, Wieselburg-Land
192 | Seegasse, Wieselburg
194 Scenario: github #190
195 When looking up place N257363453
196 Then the results contain
197 | osm_type | osm_id | latlon
198 | node | 257363453 | 35.8404121,128.5586643 +-100m