Train Reinstatement

From Open Rail Data Wiki

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


Network Rail Open Data Feeds
Data Feeds About the Feeds Account States Durable Subscriptions Example Code ( PHP / C# / Java / Ruby / Node.js) • Advanced UsesFAQ Release Notes
RTPPM RTPPM Feed
Train Movements Train Movements Feed Train Activation Train Cancellation Train Movement Train Reinstatement Change of Origin Change of Identity Change of Location TSPEED Field Planned Cancellations Cancellation Codes
TD TD Feed C-Class Messages S-Class Messages Train Describers TD Berths
VSTP VSTP Feed
TSR TSR Feed Route Codes
SCHEDULE SCHEDULE Feed TIPLOC Records Schedule and Location Records Association Records CIF Codes How Scheduling Works Allowances
Reference Data Reference Data Feed TOC Codes CIF Codes Delay Attribution Codes Identifying Locations (STANOX, TIPLOC, NLC and 3-Alpha Codes) STANOX Geographical Areas Train Planning data (BPLAN)