This endpoint presents the current reasons why a train is late as seen by the Darwin system.

Please make certain you have read the Conditions of use before using this API.

All Late reasons

Sending an HTTP GET to http://api.area51.onl/rail/1/ref/darwin/late which will return a JSON array of all late codes.

id
The ID used within Darwin
name
The late reason

When used for display the name must be used as-is to maintain uniformity between all systems that use the Darwin data.

$ curl -s http://api.area51.onl/rail/1/ref/darwin/late | jq '.'
[
  {
    "id": 100,
    "name": "This train has been delayed by a broken down train"
  },
  {
    "id": 101,
    "name": "This train has been delayed by a delay on a previous journey"
  },
  ...
]

Retrieving a code by id

Simply append /id to the url to perform a lookup on just that id: and a JSON object will be returned. If no entry exists then null is returned

$ curl -s http://api.area51.onl/rail/1/ref/darwin/late/634 | jq '.'
{
  "id": 634,
  "name": "This train has been delayed by a wartime bomb which has now been made safe"
}
$ curl -s http://api.area51.onl/rail/1/ref/darwin/late/42 | jq '.'
null