I am hoping you might be able to help me out with a query and understanding of a schedule update received overnight. Also, I am new to the Darwin service and only just getting to grips with the data structure etc so will apologise for any newbie style questions or assumptions.
The train in question is the 19:02 from VIC to BOG (with a portion also going to PMH).
Below is the xml of the schedule update received (hopefully the formatting will not get messed up), questions are below the XML:
<?xml version="1.0" encoding="UTF-8"?>
<Pport
<uR requestID="AM02986904" requestSource="AM02" updateOrigin="CIS">
<schedule rid="201607093588254" ssd="2016-07-09" toc="SN" trainCat="XX" trainId="1C44" uid="W70413">
<ns2_OR act="TB" ptd="19:02" tpl="VICTRIC" wtd="19:02"/>
<ns2_PP tpl="BATRSPJ" wtp="19:05"/>
<ns2_PP tpl="BATRSPK" wtp="19:05:50"/>
<ns2_PP tpl="POUPRTJ" wtp="19:06:42"/>
<ns2_IP act="T " pta="19:08" ptd="19:08" tpl="CLPHMJC" wta="19:07:30" wtd="19:08:30"/>
<ns2_PP tpl="WANDCMN" wtp="19:10:30"/>
<ns2_PP tpl="BALHAM" wtp="19:11"/>
<ns2_PP tpl="BALHJN" wtp="19:12"/>
<ns2_PP tpl="STRENJN" wtp="19:12:30"/>
<ns2_PP tpl="STRHCOM" wtp="19:13:04"/>
<ns2_PP tpl="NORBURY" wtp="19:13:47"/>
<ns2_PP tpl="THTH" wtp="19:14:50"/>
<ns2_PP tpl="SELHRST" wtp="19:15:30"/>
<ns2_PP tpl="WNDMLBJ" wtp="19:16"/>
<ns2_IP act="T " pta="19:17" ptd="19:18" tpl="ECROYDN" wta="19:17" wtd="19:18"/>
<ns2_PP tpl="SCROYDN" wtp="19:19:16"/>
<ns2_PP tpl="PURLEYO" wtp="19:20:33"/>
<ns2_PP tpl="PURLEY" wtp="19:21:30"/>
<ns2_PP tpl="SNSTJN" wtp="19:22:30"/>
<ns2_PP tpl="COLSDNS" wtp="19:23:53"/>
<ns2_PP tpl="MERSTHM" wtp="19:27:27"/>
<ns2_PP tpl="REDH483" wtp="19:28:30"/>
<ns2_IP act="T " pta="19:29" ptd="19:30" tpl="REDHILL" wta="19:29" wtd="19:30"/>
<ns2_PP tpl="EARLSWD" wtp="19:32"/>
<ns2_PP tpl="SALFDS" wtp="19:33:45"/>
<ns2_IP act="T " pta="19:36" ptd="19:36" tpl="HORLEY" wta="19:35:30" wtd="19:36"/>
<ns2_IP act="T " pta="19:38" ptd="19:39" tpl="GTWK" wta="19:38" wtd="19:39:30"/>
<ns2_PP tpl="TNSLYGJ" wtp="19:40:28"/>
<ns2_IP act="T " pta="19:44" ptd="19:44" tpl="THBDGS" wta="19:43:30" wtd="19:44:30"/>
<ns2_IP act="T " pta="19:48" ptd="19:48" tpl="CRAWLEY" wta="19:47:30" wtd="19:48"/>
<ns2_PP tpl="IFIELD" wtp="19:49:20"/>
<ns2_PP tpl="FAYGATE" wtp="19:52:57"/>
<ns2_PP tpl="LHVN" wtp="19:55:01"/>
<ns2_IP act="T " pta="19:56" ptd="20:00" tpl="HORSHAM" wta="19:56" wtd="20:00"/>
<ns2_PP can="true" tpl="CHRSTSH" wtp="20:02:42"/>
<ns2_IP act="T " pta="20:07" ptd="20:07" tpl="BILSHST" wta="20:07:30" wtd="20:07:30"/>
<ns2_IP act="T " pta="20:12" ptd="20:12" tpl="PULBRO" wta="20:12" wtd="20:12"/>
<ns2_IP act="T " can="true" pta="20:12" ptd="20:13" tpl="AMLY" wta="20:12:30" wtd="20:13"/>
<ns2_PP tpl="AMLY" wtp="20:13"/>
<ns2_IP act="T " pta="20:13" ptd="20:14" tpl="ARUNDEL" wta="20:13:30" wtd="20:14"/>
<ns2_IP act="T " pta="20:23" ptd="20:23" rdelay="-8" tpl="FORD" wta="20:23" wtd="20:23"/>
<ns2_PP can="true" tpl="AMLY" wtp="20:16:12"/>
<ns2_IP act="T " pta="20:27" ptd="20:27" rdelay="-8" tpl="BRHM" wta="20:26:30" wtd="20:27:30"/>
<ns2_PP can="true" tpl="ARUNDEL" wtp="20:19:31"/>
<ns2_DT act="TF" planAct="T " pta="20:28" ptd="20:28" rdelay="-8" tpl="BOGNORR" wta="20:28" wtd="20:28:30"/>
<ns2_PP can="true" tpl="ARUNDLJ" wtp="20:21:30"/>
<ns2_PP can="true" rdelay="-8" tpl="BRHM" wtp="20:31:41"/>
<ns2_IP act="T " can="true" pta="20:35" ptd="20:35" rdelay="-8" tpl="CHCHSTR" wta="20:34:30" wtd="20:35:30"/>
<ns2_PP can="true" rdelay="-8" tpl="FSHBORN" wtp="20:37:01"/>
<ns2_PP can="true" rdelay="-8" tpl="BOSHAM" wtp="20:38:23"/>
<ns2_PP can="true" rdelay="-8" tpl="NUTBORN" wtp="20:39:46"/>
<ns2_PP can="true" rdelay="-8" tpl="SBOURNE" wtp="20:41:40"/>
<ns2_PP can="true" rdelay="-8" tpl="EMSWTH" wtp="20:42:30"/>
<ns2_PP can="true" rdelay="-8" tpl="WRBLNGT" wtp="20:44:18"/>
<ns2_IP act="T " can="true" pta="20:46" ptd="20:46" rdelay="-8" tpl="HAVANT" wta="20:45:30" wtd="20:46:30"/>
<ns2_PP can="true" rdelay="-8" tpl="BDHMPTN" wtp="20:49:21"/>
<ns2_PP can="true" rdelay="-8" tpl="FRLNGTJ" wtp="20:50:30"/>
<ns2_PP can="true" rdelay="-8" tpl="PCRKJN" wtp="20:51"/>
<ns2_PP can="true" rdelay="-8" tpl="HILSEA" wtp="20:51:25"/>
<ns2_PP can="true" rdelay="-8" tpl="FRATTNE" wtp="20:53:30"/>
<ns2_IP act="T " can="true" pta="20:55" ptd="20:55" rdelay="-8" tpl="FRATTON" wta="20:54:30" wtd="20:55:30"/>
<ns2_PP can="true" rdelay="-8" tpl="BLFRJN" wtp="20:57:30"/>
<ns2_IP act="T " can="true" pta="20:58" ptd="20:59" rdelay="-8" tpl="PSEA" wta="20:58" wtd="20:59"/>
<ns2_DT act="TF" can="true" pta="21:03" rdelay="-8" tpl="PHBR" wta="21:03"/>
<ns2_cancelReason>108</ns2_cancelReason>
</schedule>
</uR>
</Pport>
1. This appears to have 2 ns_2DT elements (please note I have replace the : in the ns2 elements as my script does not like them), why are their 2 DT elements, the corresponding train has an rid of 201607093604839 which is just the Horsham to Bognor Regis part.
3. The rDelay elements, from my understanding this is typically when a train gets redirected and then rejoins its route but with a delay that needs to be added to the times, however, this would appear to be a negative figure so should the time be taken OFF the times?
4. This update was received at 4:25 this morning, well after the train would have completed its run, is there a reason for this, should any data received UP to this point be discarded and this replace it as gospel?