X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/8c3a0efe8b75a06279998e66a932d8a56c483961..d3ff831b8abb822df1e9f4317441cea835c65dc1:/test/bdd/api/reverse/params.feature diff --git a/test/bdd/api/reverse/params.feature b/test/bdd/api/reverse/params.feature index 2a5821e4..d6ef3794 100644 --- a/test/bdd/api/reverse/params.feature +++ b/test/bdd/api/reverse/params.feature @@ -3,7 +3,7 @@ Feature: Parameters for Reverse API Testing different parameter options for reverse API. Scenario Outline: Reverse-geocoding without address - When sending reverse coordinates 53.603,10.041 + When sending reverse coordinates 47.13,9.56 | addressdetails | | 0 | Then exactly 1 result is returned @@ -25,8 +25,41 @@ Feature: Parameters for Reverse API | -45.3,; | | gkjd,50 | + Scenario Outline: Zoom levels between 4 and 18 are allowed + When sending reverse coordinates 47.14122383,9.52169581334 + | zoom | + | | + Then exactly 1 result is returned + And result addresses contain + | country_code | + | li | + + Examples: + | zoom | + | 4 | + | 5 | + | 6 | + | 7 | + | 8 | + | 9 | + | 10 | + | 11 | + | 12 | + | 13 | + | 14 | + | 15 | + | 16 | + | 17 | + | 18 | + + Scenario: Non-numerical zoom levels return an error + When sending reverse coordinates 47.14122383,9.52169581334 + | zoom | + | adfe | + Then a HTTP 400 is returned + Scenario Outline: Reverse Geocoding with extratags - When sending reverse coordinates 10.776234290950017,106.70425325632095 + When sending reverse coordinates 47.1395013150811,9.522098077031046 | extratags | | 1 | Then result 0 has attributes extratags @@ -39,7 +72,7 @@ Feature: Parameters for Reverse API | geojson | Scenario Outline: Reverse Geocoding with namedetails - When sending reverse coordinates 10.776455623137625,106.70175343751907 + When sending reverse coordinates 47.1395013150811,9.522098077031046 | namedetails | | 1 | Then result 0 has attributes namedetails