Train Cancellation: Difference between revisions
BarryCarlyon (talk | contribs) →Example: clean trash |
BarryCarlyon (talk | contribs) |
||
Line 49: | Line 49: | ||
|- | |- | ||
| loc_stanox|| 74803|| The location of the train when the message occured. (Newbury in this case) | | loc_stanox|| 74803|| The location of the train when the message occured. (Newbury in this case) | ||
|- | |||
| canx_reason_code|| PD|| Reason for Why the Train was cancelled | |||
|} | |} |
Revision as of 22:06, 24 July 2012
Overview
The Train Cancellation message is used to indicate a train has been cancelled indicated by the canx_reason_code
field. The STANOX may represent a station or junction.
Example
"header": { msg_type:"0002", source_dev_id:"", user_id:"", original_data_source:"SMART", msg_queue_timestamp:"1343166976000", source_system_id:"TRUST" }, "body": { "train_file_address":null, "train_service_code":"25519007", "orig_loc_stanox":"", "toc_id":"25", "dep_timestamp":"1343177760000", "division_code":"25", "loc_stanox":"74803", "canx_timestamp":"1343170560000", "canx_reason_code":"PD", "train_id":"745K96M025", "orig_loc_timestamp":"", "canx_type":"ON CALL" }
Important Fields
The fields of main significance are:
Field | Value | Explanation |
---|---|---|
canx_timestamp | 1343170560000 | The time the train was cancelled at the STANOX ( Tue, 24 Jul 2012 23:56:00 +0100 ) |
train_id | 745K96M025 | The Trains IDs, like a Train_Movement where the Train terminates, the Train won't likely appear on this ID again, (unless Train_Reinstatement occurs) |
train_service_code | 25519007 | schedule reference |
loc_stanox | 74803 | The location of the train when the message occured. (Newbury in this case) |
canx_reason_code | PD | Reason for Why the Train was cancelled |