This endpoint returns informational messages about a station. These are typically sent when there is a problem affecting services at a station or on a route. These messages can also indicate that real-time running for trains at a station should be suppressed. For example, if a station is evacuated but trains are still running through, it is not appropriate to show trains at that location.

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

The output of this endpoint is either a JSON array or null if no station exists or no messages are available for a specified 3Alpha/CRS code.

The object's within the array consist of:

icon
Icon to display, currently just INFO
category
Category of message, see below
severity
Severity, see below
message
XML/HTML message to show
issued
ISO timestamp of when this message was issued
source
the source of the message, currently DARWIN

Category values are:

Train
Affects trains calling at a station
Station
Related to the station, e.g. lifts or escalators
Connections
Information on other services at a station, e.g. London Underground
System
Related to the operation of Darwin, e.g. feed failure
Misc
Anything not covered by another category
PriorTrains
Advance notices of engineering work
PriorOthers
Advance notices of other work, e.g. planned escalator maintenance work

Severity values are:

0
Normal
1
Minor
2
Major
3
Severe
$ curl -s http://api.area51.onl/rail/1/station/WAT/messages | jq '.' 
[
  {
    "icon": "INFO",
    "category": "Train",
    "severity": 1,
    "suppress": false,
    "message": "<Msg>\n    <p>Poor rail conditions affecting South West Trains. More details can be found in <a href=\"http://nationalrail.co.uk/service_disruptions/150470.aspx\">Latest Travel News.</a></p>\n  </Msg>",
    "issued": "2016-11-22T12:02:39Z",
    "source": "DARWIN"
  }
]