Train Reinstatement: Difference between revisions
PeterHicks (talk | contribs) Add details of train reinstatements |
m Categorisation |
||
Line 66: | Line 66: | ||
|- | |- | ||
|} | |} | ||
[[Category:Train Movement Data]] |
Revision as of 08:57, 20 May 2013
Overview
When trains are cancelled, but then reinstated, a reinstatement message message is sent. This contains details of the cancellation - the location to which it applies, the type of cancellation, and the reason code.
As with all other messages, cancellation messages will only be received for train schedules which have already been activated.
Data structure
Header
Field | Description |
---|---|
msg_type | Set to '0005' for a reinstatement message |
source_dev_id | Set to the device ID of the terminal that issued the request |
source_system_id | Set to "TRUST" for a reinstatement message |
original_data_source | Set to "TOPS", "SDR" or "TRUST DA" |
Body
Field | Description |
---|---|
train_id | The 10-character unique identity for this train at TRUST activation time |
current_train_id | Where a train has had its identity changed, the current 10-character unique identity for this train |
original_loc_timestamp | The planned departure time associated with the original location |
dep_timestamp | The planned departure time at the location where the train is being reinstated |
loc_stanox | The STANOX of the location at which the train is reinstated |
original_loc_stanox | The STANOX of the location in the schedule at activation time, if the location has been revised |
reinstatement_timestamp | The time at which the train was reinstated |
toc_id | Operating company ID as per TOC Codes |
division_code_id | Operating company ID as per TOC Codes |
train_file_address | The TOPS train file address, if applicable |
train_service_code | Train service code as per schedule |