VSTP: Difference between revisions

From Open Rail Data Wiki
Further Notes.
notes lifted from the dev docs
Line 1: Line 1:
== Overview ==
== Overview ==


This is a real time feed. Last minute schedule changes that can't be reflected in the [[SCHEDULE Amazon S3 Bucket Schedule Feeds]] are sent here.
The VSTP (Very Short Term Planning) feed provides schedule records via the VSTP process.
 
This channel is a real-time channel. Freight services are not included in these channels; only messages containing headcodes for classes 1, 2 and 9 are included in this feed.
 
Last minute schedule changes that can't be reflected in the [[SCHEDULE Amazon S3 Bucket Schedule Feeds]] are sent here.


== Data Format ==
== Data Format ==

Revision as of 22:32, 26 July 2012

Overview

The VSTP (Very Short Term Planning) feed provides schedule records via the VSTP process.

This channel is a real-time channel. Freight services are not included in these channels; only messages containing headcodes for classes 1, 2 and 9 are included in this feed.

Last minute schedule changes that can't be reflected in the SCHEDULE Amazon S3 Bucket Schedule Feeds are sent here.

Data Format

More often than not this feed will return a lot of nothing.

With a STOMP Client ID, you can check this feed less regularly that other feeds.

- All Timestamp columns are in Milliseconds

Example

   [VSTPCIFMsgV1] => stdClass Object
       (
           [schemaLocation] => http://xml.networkrail.co.uk/ns/2008/Train%20itm_vstp_cif_messaging_v1.xsd
           [classification] => industry
           [timestamp] => 1343339831000
           [owner] => Network Rail
           [originMsgId] => 2012-07-26T21:57:11-00:00vstp.networkrail.co.uk
           [Sender] => stdClass Object
               (
                   [organisation] => Network Rail
                   [application] => TOPS
                   [component] => VSTP
               )
           
           [schedule] => stdClass Object
               (
                   [schedule_id] => 
                   [transaction_type] => Create
                   [schedule_start_date] => 2012-07-26
                   [schedule_end_date] => 2012-07-26
                   [schedule_days_runs] => 0001000
                   [applicable_timetable] => N
                   [CIF_bank_holiday_running] =>  
                   [CIF_train_uid] =>  95629
                   [train_status] => 1
                   [CIF_stp_indicator] => N
                   [schedule_segment] => Array
                       (
                       )
               )
       )

- Note %20 added to the schemaLocation field for Train itm_vstp_cif_messaging_v1.xsd for wiki purposes, its a PHP JSON Decode