Train Reinstatement: Difference between revisions
No edit summary |
|||
Line 6: | Line 6: | ||
== Data structure == | == Data structure == | ||
<pre> | |||
{ | |||
"header": { | |||
"msg_type": "0005", | |||
"source_dev_id": "LYUD", | |||
"user_id": "#QRP0059", | |||
"original_data_source": "TRUST DA", | |||
"msg_queue_timestamp": "1511528258000", | |||
"source_system_id": "TRUST" | |||
}, | |||
"body": { | |||
"current_train_id": "", | |||
"original_loc_timestamp": "", | |||
"train_file_address": null, | |||
"train_service_code": "21734000", | |||
"toc_id": "20", | |||
"dep_timestamp": "1511533980000", | |||
"division_code": "20", | |||
"loc_stanox": "32530", | |||
"train_id": "321P42MP24", | |||
"original_loc_stanox": "", | |||
"reinstatement_timestamp": "1511528220000" | |||
} | |||
} | |||
</pre> | |||
=== Header === | === Header === | ||
Line 18: | Line 44: | ||
|source_dev_id | |source_dev_id | ||
|Set to the device ID of the terminal that issued the request | |Set to the device ID of the terminal that issued the request | ||
|- | |||
|user_id | |||
| | |||
|- | |- | ||
|source_system_id | |source_system_id | ||
Line 24: | Line 53: | ||
|original_data_source | |original_data_source | ||
|Set to "TOPS", "SDR" or "TRUST DA" | |Set to "TOPS", "SDR" or "TRUST DA" | ||
|- | |||
|msg_queue_timestamp | |||
| | |||
|} | |} | ||
Revision as of 18:16, 24 November 2017
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": { "msg_type": "0005", "source_dev_id": "LYUD", "user_id": "#QRP0059", "original_data_source": "TRUST DA", "msg_queue_timestamp": "1511528258000", "source_system_id": "TRUST" }, "body": { "current_train_id": "", "original_loc_timestamp": "", "train_file_address": null, "train_service_code": "21734000", "toc_id": "20", "dep_timestamp": "1511533980000", "division_code": "20", "loc_stanox": "32530", "train_id": "321P42MP24", "original_loc_stanox": "", "reinstatement_timestamp": "1511528220000" } }
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 |
user_id | |
source_system_id | Set to "TRUST" for a reinstatement message |
original_data_source | Set to "TOPS", "SDR" or "TRUST DA" |
msg_queue_timestamp |
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 Uses • FAQ • 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) |