X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/3a787df9347454396c963353e3ae89bbc3501fd1..a7e782353522da11504efd6e1948b86e2a97e7f7:/test/bdd/api/reverse/params.feature?ds=inline diff --git a/test/bdd/api/reverse/params.feature b/test/bdd/api/reverse/params.feature index 0d35cdc7..f78c4c6a 100644 --- a/test/bdd/api/reverse/params.feature +++ b/test/bdd/api/reverse/params.feature @@ -1,6 +1,6 @@ @APIDB Feature: Parameters for Reverse API - Testing diferent parameter options for reverse API. + Testing different parameter options for reverse API. Scenario Outline: Reverse-geocoding without address When sending reverse coordinates 53.603,10.041 @@ -13,8 +13,18 @@ Feature: Parameters for Reverse API | format | | json | | jsonv2 | + | geojson | | xml | + Scenario Outline: Coordinates must be floating-point numbers + When sending reverse coordinates + Then a HTTP 400 is returned + + Examples: + | coords | + | -45.3,; | + | gkjd,50 | + Scenario Outline: Reverse Geocoding with extratags When sending reverse coordinates 10.776234290950017,106.70425325632095 | extratags | @@ -26,6 +36,7 @@ Feature: Parameters for Reverse API | xml | | json | | jsonv2 | + | geojson | Scenario Outline: Reverse Geocoding with namedetails When sending reverse coordinates 10.776455623137625,106.70175343751907 @@ -38,6 +49,7 @@ Feature: Parameters for Reverse API | xml | | json | | jsonv2 | + | geojson | Scenario Outline: Reverse Geocoding contains TEXT geometry When sending reverse coordinates 47.165989816710066,9.515774846076965 @@ -98,5 +110,18 @@ Feature: Parameters for Reverse API | xml | geojson | | json | geojson | | jsonv2 | geojson | + | geojson | geojson | + Scenario Outline: Reverse Geocoding in geojson format contains no non-geojson geometry + When sending geojson reverse coordinates 47.165989816710066,9.515774846076965 + | polygon_text | polygon | polygon_svg | polygon_geokml | + | 1 | 1 | 1 | 1 | + Then result 0 has not attributes + + Examples: + | response_attribute | + | geotext | + | polygonpoints | + | svg | + | geokml |