1 Feature: Object details
 
   2     Testing different parameter options for details API.
 
   4     Scenario: Basic details
 
   5         When sending v1/details
 
   8         Then a HTTP 200 is returned
 
   9         And the result is valid json
 
  10         And the result has attributes geometry
 
  11         And the result has no attributes keywords,address,linked_places,parentof
 
  12         And the result contains
 
  16     Scenario: Basic details with pretty printing
 
  17         When sending v1/details
 
  18           | osmtype | osmid     | pretty |
 
  20         Then a HTTP 200 is returned
 
  21         And the result is valid json
 
  22         And the result has attributes geometry
 
  23         And the result has no attributes keywords,address,linked_places,parentof
 
  25     Scenario: Details with addressdetails
 
  26         When sending v1/details
 
  27           | osmtype | osmid     | addressdetails |
 
  29         Then a HTTP 200 is returned
 
  30         And the result is valid json
 
  31         And the result has attributes address
 
  33     Scenario: Details with entrances
 
  34         When sending v1/details
 
  35           | osmtype | osmid     | entrances |
 
  37         Then a HTTP 200 is returned
 
  38         And the result is valid json
 
  39         And the result contains array field entrances where element 0 contains
 
  40           | osm_id     | type | lat        | lon       |
 
  41           | 6580031131 | yes  | 47.2489382 | 9.5284033 |
 
  43     Scenario: Details with linkedplaces
 
  44         When sending v1/details
 
  45           | osmtype | osmid  | linkedplaces |
 
  47         Then a HTTP 200 is returned
 
  48         And the result is valid json
 
  49         And the result has attributes linked_places
 
  51     Scenario: Details with hierarchy
 
  52         When sending v1/details
 
  53           | osmtype | osmid     | hierarchy |
 
  55         Then a HTTP 200 is returned
 
  56         And the result is valid json
 
  57         And the result has attributes hierarchy
 
  59     Scenario: Details with grouped hierarchy
 
  60         When sending v1/details
 
  61           | osmtype | osmid     | hierarchy | group_hierarchy |
 
  62           | W       | 297699560 | 1         | 1               |
 
  63         Then a HTTP 200 is returned
 
  64         And the result is valid json
 
  65         And the result has attributes hierarchy
 
  67     Scenario Outline: Details with keywords
 
  68         When sending v1/details
 
  69             | osmtype | osmid | keywords |
 
  71         Then a HTTP 200 is returned
 
  72         Then the result is valid json
 
  73         And the result has attributes keywords
 
  83     Scenario: Details of a country with keywords
 
  84         When sending v1/details
 
  85             | osmtype | osmid   | keywords |
 
  87         Then a HTTP 200 is returned
 
  88         And the result is valid json
 
  89         And the result has attributes keywords
 
  91     Scenario Outline: Details with full geometry
 
  92         When sending v1/details
 
  93             | osmtype | osmid | polygon_geojson |
 
  95         Then a HTTP 200 is returned
 
  96         And the result is valid json
 
  97         And the result has attributes geometry
 
  98         And the result contains
 
 103             | type | id        | geometry   |
 
 104             | W    | 297699560 | LineString |
 
 105             | W    | 243055645 | Polygon    |
 
 106             | W    | 243055716 | Polygon    |
 
 107             | W    | 43327921  | LineString |