1 Feature: API regression tests
2 Tests error cases reported in tickets.
5 Scenario Outline: github #36
6 When sending json search query "<query>" with address
7 Then result addresses contain
9 | 0 | Seegasse | Wieselburg-Land
13 | Seegasse, Gemeinde Wieselburg-Land
14 | Seegasse, Wieselburg-Land
15 | Seegasse, Wieselburg
18 When sending json search query "89 River Avenue, Hoddesdon, Hertfordshire, EN11 0JT"
19 Then at least 1 result is returned
22 When sending json search query "East Harvard Avenue, Denver"
23 Then more than 2 results are returned
26 When sending xml search query "Borlänge Kommun"
32 When sending json search query "Lange Straße, Bamberg" with address
33 Then result addresses contain
38 When sending json search query "pad, germany"
40 | ID | class | display_name
41 | 0 | aeroway | Paderborn/Lippstadt,.*
44 When sending json search query "Johnsons Close, hackbridge" with address
45 Then result addresses contain
50 Scenario Outline: trac #2586
51 When sending json search query "<query>" with address
52 Then result addresses contain
61 Scenario: trac #2628 (1)
62 When sending json search query "Adam Kraft Str" with address
63 Then result addresses contain
65 | 0 | Adam-Kraft-Straße
67 Scenario: trac #2628 (2)
68 When sending json search query "Maxfeldstr. 5, Nürnberg" with address
69 Then result addresses contain
70 | ID | house_number | road | city
71 | 0 | 5 | Maxfeldstraße | Nürnberg
74 When sending json search query "Nöthnitzer Str. 40, 01187 Dresden" with address
75 Then result addresses contain
76 | ID | house_number | road | city
77 | 0 | 40 | Nöthnitzer Straße | Dresden
79 Scenario Outline: trac #2667
80 When sending json search query "<query>" with address
81 Then result addresses contain
87 | 16 | 16 Woodpecker Way, Cambourne
88 | 14906 | 14906, 114 Street Northwest, Edmonton, Alberta, Canada
89 | 14904 | 14904, 114 Street Northwest, Edmonton, Alberta, Canada
90 | 15022 | 15022, 114 Street Northwest, Edmonton, Alberta, Canada
91 | 15024 | 15024, 114 Street Northwest, Edmonton, Alberta, Canada
94 When sending json search query "kirchstraße troisdorf Germany"
97 | 0 | .*, Troisdorf, .*
100 When sending json search query "6а, полуботка, чернигов" with address
101 Then result addresses contain
106 When looking up coordinates 49.0942079697809,8.27565898861822
107 Then result addresses contain
108 | ID | road | village | country
109 | 0 | Daimlerstraße | Jockgrim | Deutschland
112 When sending json search query "4008"
115 | 0 | place | postcode
118 When sending json search query "Philippstr.4, 52349 Düren" with address
119 Then result addresses contain
121 | 0 | Philippstraße | Düren
124 When sending json search query "528, Merkley Drive, K4A 1N5,CA" with address
125 Then result addresses contain
126 | ID | house_number | road | postcode | country
127 | 0 | 528 | Merkley Drive | K4A 1N5 | Canada
130 When sending json search query "K4A 1N5,CA"
132 | ID | class | type | display_name
133 | 0 | place | postcode | .*, Canada
136 When sending json search query "Leliestraat 31, Zwolle" with address
137 Then result addresses contain
142 When sending json search query "berlinerstrasse, leipzig" with address
143 Then result addresses contain
145 | 0 | Berliner Straße
148 When looking up coordinates -33.906895553,150.99609375
149 Then result addresses contain
150 | ID | city | postcode | country
151 | 0 | [^0-9]* | 2197 | Australia
154 When sending json search query "Azadi Square, Faruj" with address
155 Then result addresses contain
157 | 0 | ميدان آزادي | فاروج
160 | 0 | 37.2323,58.2193 +-1km
163 When sending json search query "Ohmstraße 7, Berlin" with address
164 Then at least 2 results are returned
165 And result addresses contain
166 | house_number | road | state
167 | 7 | Ohmstraße | Berlin
170 When sending json search query "Soccer City"
172 | ID | class | type | latlon
173 | 0 | leisure | stadium | -26.2347261,27.982645 +-50m
176 When sending json search query "Old Way, Frinton"
178 | ID | class | latlon
179 | 0 | highway | 51.8324206,1.2447352 +-100m
182 Given the request parameters
185 When sending json search query "sy"
186 Then exactly 0 results are returned
188 Scenario: github #190
189 When looking up place N257363453
190 Then the results contain
191 | osm_type | osm_id | latlon
192 | node | 257363453 | 35.8404121,128.5586643 +-100m