Services
The services
endpoint provides the latest information on all services from Transport for Edinburgh.
Update frequency
Once a day
Resource
GET /v1/services
Authorisation
API Authentication Token
Response
Status-Code: 200 OK
{
"last_updated": 1419853193,
"services": [
{
"name": "1",
"description": "Clermiston - Easter Road",
"service_type": "day",
"routes": [
{
"destination": "Clermiston",
"points": [
{
"stop_id": 36234249,
"latitude": 55.96799,
"longitude": -3.168343
},
{
"stop_id": null,
"latitude": 55.96717,
"longitude": -3.169231
},
{...}
],
"stops": [
36234249,
36234252,
36234253,
{...}
]
},
{...}
]
}
]
}
Name | Type | Description |
---|---|---|
last_updated | int | |
name | string | The name of the service (Edinburgh Trams is designated as T50) |
description | string | The canonical description of the service |
service_type | string | Can be day, express, night or tram |
routes | Array(Route ) | A Route object describes one of various routes - each route has a destination, a series of points co-ordinates and a list of stops on that route (the stops are in order) |
Updated less than a minute ago