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,
                        {...}
                    ]
                },
                {...}
            ]
        }
    ]
}
NameTypeDescription
last_updatedint
namestringThe name of the service (Edinburgh Trams is designated as T50)
descriptionstringThe canonical description of the service
service_typestringCan be day, express, night or tram
routesArray(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)