Closed peter-mount closed 5 years ago
It seems the new parsing is ignoring the train length even though it's appearing in the feeds
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Pport xmlns="http://www.thalesgroup.com/rtti/PushPort/v16" xmlns:ns2="http://www.thalesgroup.com/rtti/PushPort/Schedules/v3" xmlns:ns3="http://www.thalesgroup.com/rtti/PushPort/Schedules/v2" xmlns:ns4="http://www.thalesgroup.com/rtti/PushPort/Formations/v2" xmlns:ns5="http://www.thalesgroup.com/rtti/PushPort/Forecasts/v3" xmlns:ns6="http://www.thalesgroup.com/rtti/PushPort/Formations/v1" xmlns:ns7="http://www.thalesgroup.com/rtti/PushPort/StationMessages/v1" xmlns:ns8="http://www.thalesgroup.com/rtti/PushPort/TrainAlerts/v1" xmlns:ns9="http://www.thalesgroup.com/rtti/PushPort/TrainOrder/v1" xmlns:ns10="http://www.thalesgroup.com/rtti/PushPort/TDData/v1" xmlns:ns11="http://www.thalesgroup.com/rtti/PushPort/Alarms/v1" xmlns:ns12="http://thalesgroup.com/RTTI/PushPortStatus/root_1" ts="2019-04-26T20:21:03.0560808+01:00" version="16.0"> <uR updateOrigin="CIS" requestSource="at21" requestID="0000000000061188"> <TS rid="201904268704091" uid="W04091" ssd="2019-04-26"> <ns5:Location tpl="ELMW" wta="21:00:30" wtd="21:01" pta="21:01" ptd="21:01"> <ns5:arr et="21:01" wet="21:00" src="Darwin"/> <ns5:dep et="21:01" src="Darwin"/> <ns5:plat>4</ns5:plat> <ns5:length>8</ns5:length> </ns5:Location> </TS> </uR> </Pport>
This turned out to be the func (dest *Location) MergeFrom(src *Location) function not copying the train length so when an update happened it didn't persist.
func (dest *Location) MergeFrom(src *Location)
It seems the new parsing is ignoring the train length even though it's appearing in the feeds