SmartGare
API referenceEndpoints

Read a coordination's programme on a line

Which permit and coach drive each departure of a line a coordination operates, over rotation days `from` to `to` (both included, 31 at most): the line's departures are counted from the coordination's reference day in the order they were planned, a departure before the rotation-day start counting with the day before and a cancelled one keeping its place, and the n-th goes to the permit at position n modulo the day's table, frozen coaches left out. With `vehicle_id`, only that coach's departures. Reading records nothing. **Required permission:** `traffic.assignment:read`

GET/traffic/v1/lines/{lineId}/programme

Which permit and coach drive each departure of a line a coordination operates, over rotation days from to to (both included, 31 at most): the line's departures are counted from the coordination's reference day in the order they were planned, a departure before the rotation-day start counting with the day before and a cancelled one keeping its place, and the n-th goes to the permit at position n modulo the day's table, frozen coaches left out. With vehicle_id, only that coach's departures. Reading records nothing.

Required permission: traffic.assignment:read

AuthorizationBearer <token>

In: header

Query Parameters

from*string
Formatdate
to*string
Formatdate
vehicle_id?string

Response Body

*/*

*/*

*/*

*/*

curl -X GET "https://example.com/traffic/v1/lines/{lineId}/programme?from=2019-08-24&to=2019-08-24"
{  "coordination_id": "string",  "departures": [    {      "authorization_id": "string",      "cancelled": true,      "departure_id": "string",      "planned_at": "2019-08-24T14:15:22Z",      "position": 0,      "rotation_day": "2019-08-24",      "swap_id": "string",      "vehicle_id": "string"    }  ],  "from": "2019-08-24",  "line_id": "string",  "reference_day": "2019-08-24",  "rotation_day_starts_at": "string",  "to": "2019-08-24",  "vehicle_id": "string"}