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 "207, Boardman Street, S0J 1L0, CA" with address
112 Then result addresses contain
113 | ID | house_number | road | postcode | country
114 | 0 | 207 | Boardman Street | S0J 1L0 | Canada
117 When sending json search query "S0J 1L0,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 | country
138 | 0 | [^0-9]*$ | Australia
141 When sending json search query "Ohmstraße 7, Berlin" with address
142 Then at least 2 results are returned
143 And result addresses contain
144 | house_number | road | state
145 | 7 | Ohmstraße | Berlin
148 When sending json search query "Soccer City"
150 | ID | class | type | latlon
151 | 0 | leisure | stadium | -26.2347261,27.982645 +-50m
154 When sending json search query "Old Way, Frinton"
156 | ID | class | latlon
157 | 0 | highway | 51.8324206,1.2447352 +-100m
159 Scenario Outline: trac #5025
160 When sending json search query "Kriegsstr <house_nr>, Karlsruhe" with address
161 Then result addresses contain
162 | house_number | road
163 | <house_nr> | Kriegsstraße
179 Given the request parameters
182 When sending json search query "sy"
183 Then exactly 0 results are returned
186 When sending json search query "Goedestraat 41-BS, Utrecht" with address
187 Then result addresses contain
188 | house_number | road | city
189 | 41-BS | Goedestraat | Utrecht
192 Scenario Outline: github #36
193 When sending json search query "<query>" with address
194 Then result addresses contain
196 | 0 | Seegasse | .*Wieselburg-Land
200 | Seegasse, Gemeinde Wieselburg-Land
201 | Seegasse, Wieselburg-Land
202 | Seegasse, Wieselburg
204 Scenario: github #190
205 When looking up place N257363453
206 Then the results contain
207 | osm_type | osm_id | latlon
208 | node | 257363453 | 35.8404121,128.5586643 +-100m
211 Given the request parameters
214 When sending json search query "12345" with address
215 Then result addresses contain