SmartGare
API referenceEndpoints

Read how far ahead departures exist

Station-wide from the last recorded pass that generated every schedule, and line by line, with the moment the answer was computed. **Required permission:** `traffic.departure:read`

GET/traffic/v1/departures/coverage

Station-wide from the last recorded pass that generated every schedule, and line by line, with the moment the answer was computed.

Required permission: traffic.departure:read

AuthorizationBearer <token>

In: header

Response Body

*/*

curl -X GET "https://example.com/traffic/v1/departures/coverage"
{  "computed_at": "2019-08-24T14:15:22Z",  "covered_until": "2019-08-24",  "horizon_days": 0,  "horizon_end": "2019-08-24",  "last_pass": {    "actor": "string",    "created": 0,    "failed": 0,    "finished_at": "2019-08-24T14:15:22Z",    "skipped": 0,    "started_at": "2019-08-24T14:15:22Z",    "window_from": "2019-08-24",    "window_to": "2019-08-24"  },  "lines": [    {      "covered_until": "2019-08-24",      "days_ahead": 0,      "line_id": "string"    }  ],  "margin_days": 0,  "station_day": "2019-08-24",  "warning_days": 0}