Overview
When a train is calling a location other than the location in the schedule, a change of location message will be sent.
Data structure
{
"header": {
"msg_type": "0008",
"source_dev_id": "VNHY",
"user_id": "#PEE0031",
"original_data_source": "TOPS",
"msg_queue_timestamp": "1511532209000",
"source_system_id": "TRUST"
},
"body": {
"original_loc_timestamp": "1511528640000",
"current_train_id": "",
"train_file_address": "BDI",
"train_service_code": "56461882",
"dep_timestamp": "1511528640000",
"loc_stanox": "36108",
"train_id": "174M37CF24",
"original_loc_stanox": "36169",
"event_timestamp": "1511532180000"
}
}
Field
|
Description
|
msg_type
|
Set to '0008' for an change of location message
|
source_dev_id
|
Set to the ID of the device that issued the change of location message
|
user_id
|
|
original_data_source
|
Set to "TOPS" for a change of location message
|
msg_queue_timestamp
|
|
source_system_id
|
Set to "TRUST" for a change of location message
|
Body
Field
|
Description
|
train_id
|
The 10-character unique identity for this train at TRUST activation time
|
current_train_id
|
|
dep_timestamp
|
The planned departure time at the location where the train will call
|
loc_stanox
|
The STANOX of the new calling point of the train
|
original_loc_stanox
|
The STANOX of the original location in the schedule
|
original_loc_timestamp
|
The planned departure time associated with the original location
|
train_service_code
|
Train service code as per schedule
|
train_file_address
|
The TOPS train file address, if applicable
|
event_timestamp
|
The time at which the Change of Location is entered into TRUST
|