TD

From Open Rail Data Wiki
Revision as of 21:36, 24 July 2012 by BarryCarlyon (talk | contribs) (Created the page with message information and description)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Overview

The Train Describer feed contains message about Train movements at the Signal Berth Level. Messages come in 4 types, all in JSON format:

  • CA - Berth Step
  • CB - Berth Cancel
  • CC - Berth Interpost
  • CT - Heartbeat

Messages only exist for trains of headcodes classes, 1, 2 and 9.

Messages

Messages consist of a reference key and then the main JSON string.

The Reference key is the message type followed by _MSG, all in Upper case.

Each message can contain the keys,

  • to
  • time, in Milliseconds
  • area_id, see TD_Areas
  • msg_type
  • from
  • descr, the Train's headcode
  • report_time, eg 0842, is 9:42 in the morning,

CA

Contains: to, time, area_id, msg_type, from, descr

CB

Contains: time, area_id, msg_type, from, descr

CC

Contains: to, time, area_id, msg_type, descr

CT

Contains: time, area_id, msg_type, report_time