Darwin:Train Status Element

From Open Rail Data Wiki
Revision as of 16:14, 28 January 2015 by PeterHicks (talk | contribs) (Add TS element documentation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Train Status messages

Overview

Each time an actual or forecast time for a train changes within Darwin, a 'TS' message is sent. This includes the RID, UID and date of the train and the set of elements that has changed.

Detail

TS messages will normally contain an update for a single location with an actual time, followed by forecast times for the rest of the journey. However, earlier locations may be reported if there is a change to report - for example, a manual TRUST input for a previous location.

Example message

<TS rid="201411200059207" uid="C70164" ssd="2014-11-20">
  <fc:Location tpl="LOGHBRO" wta="09:41:30" wtd="09:43" pta="09:41" ptd="09:42">
    <fc:arr at="09:41" src="TD" />
    <fc:dep et="09:42" src="Darwin" />
    <fc:plat platsup="true" cisPlatsup="true">2</fc:plat>
  </fc:Location>
  <fc:Location tpl="LESTER" wta="09:51:30" wtd="09:53:30" pta="09:51" ptd="09:51">
    <fc:arr et="09:51" src="Darwin" />
    <fc:dep et="09:51" src="Darwin" />
    <fc:plat platsup="true" cisPlatsup="true">3</fc:plat>
  </fc:Location>
  <fc:Location tpl="STPX" wta="10:57" pta="10:59">
    <fc:arr et="10:59" wet="10:52" src="Darwin" />
    <fc:plat>2</fc:plat>
  </fc:Location>
</TS>