]> git.openstreetmap.org Git - nominatim.git/blob - tests/features/api/regression.feature
Merge pull request #508 from mtmail/addtype-in-installation.md
[nominatim.git] / tests / features / api / regression.feature
1 Feature: API regression tests
2     Tests error cases reported in tickets.
3
4     Scenario: trac #2430
5         When sending json search query "89 River Avenue, Hoddesdon, Hertfordshire, EN11 0JT"
6         Then at least 1 result is returned
7
8     Scenario: trac #2440
9         When sending json search query "East Harvard Avenue, Denver"
10         Then more than 2 results are returned
11
12     Scenario: trac #2456
13         When sending xml search query "Borlänge Kommun"
14         Then results contain
15          | ID | place_rank
16          | 0  | 19
17
18     Scenario: trac #2530
19         When sending json search query "Lange Straße, Bamberg" with address
20         Then result addresses contain
21          | ID | town
22          | 0  | Bamberg
23
24     Scenario: trac #2541
25         When sending json search query "pad, germany"
26         Then results contain
27          | ID | class   | display_name
28          | 0  | aeroway | Paderborn/Lippstadt,.*
29
30     Scenario: trac #2579
31         When sending json search query "Johnsons Close, hackbridge" with address
32         Then result addresses contain
33          | ID | postcode
34          | 0  | SM5 2LU
35
36     @Fail
37     Scenario Outline: trac #2586
38         When sending json search query "<query>" with address
39         Then result addresses contain
40          | ID | country_code
41          | 0  | uk
42
43     Examples:
44         | query
45         | DL7 0SN
46         | DL70SN
47
48     Scenario: trac #2628 (1)
49         When sending json search query "Adam Kraft Str" with address
50         Then result addresses contain
51          | ID | road          
52          | 0  | Adam-Kraft-Straße
53
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
59
60     Scenario: trac #2638
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
65
66     Scenario Outline: trac #2667
67         When sending json search query "<query>" with address
68         Then result addresses contain
69          | ID | house_number
70          | 0  | <number>
71
72     Examples:
73         | number | query
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
79
80     Scenario: trac #2681
81         When sending json search query "kirchstraße troisdorf Germany"
82         Then results contain
83          | ID | display_name
84          | 0  | .*, Troisdorf, .*
85
86     Scenario: trac #2758
87         When sending json search query "6а, полуботка, чернигов" with address
88         Then result addresses contain
89          | ID | house_number
90          | 0  | 6а
91
92     Scenario: trac #2790
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
97
98     Scenario: trac #2794
99         When sending json search query "4008"
100         Then results contain
101          | ID | class | type
102          | 0  | place | postcode
103
104     Scenario: trac #2797
105         When sending json search query "Philippstr.4, 52349 Düren" with address
106         Then result addresses contain
107          | ID | road          | town
108          | 0  | Philippstraße | Düren
109
110     Scenario: trac #2830
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
115
116     Scenario: trac #2830
117         When sending json search query "S0J 1L0,CA"
118         Then results contain
119          | ID | class | type     | display_name
120          | 0  | place | postcode | .*, Canada
121
122     Scenario: trac #2845
123         When sending json search query "Leliestraat 31, Zwolle" with address
124         Then result addresses contain
125          | ID | city
126          | 0  | Zwolle
127
128     Scenario: trac #2852
129         When sending json search query "berlinerstrasse, leipzig" with address
130         Then result addresses contain
131          | ID | road
132          | 0  | Berliner Straße
133
134     Scenario: trac #2871
135         When looking up coordinates -33.906895553,150.99609375
136         Then result addresses contain
137          | ID | city       | country
138          | 0  | [^0-9]*$   | Australia
139
140      Scenario: trac #2981
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
146
147      Scenario: trac #3049
148         When sending json search query "Soccer City"
149         Then results contain
150          | ID | class   | type    | latlon
151          | 0  | leisure | stadium | -26.2347261,27.982645 +-50m
152
153      Scenario: trac #3130
154         When sending json search query "Old Way, Frinton"
155         Then results contain
156          | ID | class   | latlon
157          | 0  | highway | 51.8324206,1.2447352 +-100m
158
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
164
165      Examples:
166         | house_nr
167         | 5c
168         | 25
169         | 78
170         | 80
171         | 99
172         | 130
173         | 153
174         | 196
175         | 256
176         | 294
177
178      Scenario: trac #5238
179         Given the request parameters
180          | bounded | viewbox
181          | 1       | 0,0,-1,-1
182         When sending json search query "sy"
183         Then exactly 0 results are returned
184
185     Scenario: trac #5274
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
190
191     @poldi-only
192     Scenario Outline: github #36
193         When sending json search query "<query>" with address
194         Then result addresses contain
195          | ID | road     | city
196          | 0  | Seegasse | .*Wieselburg-Land
197
198     Examples:
199          | query
200          | Seegasse, Gemeinde Wieselburg-Land
201          | Seegasse, Wieselburg-Land
202          | Seegasse, Wieselburg
203
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
209