GetArrBoardWithDetails

From Open Rail Data Wiki
Revision as of 18:06, 18 October 2016 by Q (talk | contribs) (GetArrBoardWithDetails Sample query & responses)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Sample query & responses are shown below;

LDB-PUBLIC
https://lite.realtime.nationalrail.co.uk/OpenLDBWS/ldb9.asmx

Query:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:typ="http://thalesgroup.com/RTTI/2013-11-28/Token/types" xmlns:ldb="http://thalesgroup.com/RTTI/2016-02-16/ldb/">
   <soap:Header>
      <typ:AccessToken>
         <typ:TokenValue>nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn</typ:TokenValue>
      </typ:AccessToken>
   </soap:Header>
   <soap:Body>
      <ldb:GetArrBoardWithDetailsRequest>
         <ldb:numRows>1</ldb:numRows>
         <ldb:crs>LDS</ldb:crs>
         <ldb:filterCrs></ldb:filterCrs>
         <ldb:filterType>to</ldb:filterType>
         <ldb:timeOffset>0</ldb:timeOffset>
         <ldb:timeWindow>120</ldb:timeWindow>
      </ldb:GetArrBoardWithDetailsRequest>
   </soap:Body>
</soap:Envelope>

Response:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetArrBoardWithDetailsResponse xmlns="http://thalesgroup.com/RTTI/2016-02-16/ldb/">
         <GetStationBoardResult xmlns:lt3="http://thalesgroup.com/RTTI/2015-05-14/ldb/types" xmlns:lt5="http://thalesgroup.com/RTTI/2016-02-16/ldb/types" xmlns:lt4="http://thalesgroup.com/RTTI/2015-11-27/ldb/types" xmlns:lt="http://thalesgroup.com/RTTI/2012-01-13/ldb/types" xmlns:lt2="http://thalesgroup.com/RTTI/2014-02-20/ldb/types">
            <lt4:generatedAt>2016-10-18T18:53:10.8534798+01:00</lt4:generatedAt>
            <lt4:locationName>Leeds</lt4:locationName>
            <lt4:crs>LDS</lt4:crs>
            <lt4:platformAvailable>true</lt4:platformAvailable>
            <lt5:trainServices>
               <lt5:service>
                  <lt4:sta>18:46</lt4:sta>
                  <lt4:eta>18:51</lt4:eta>
                  <lt4:platform>15B</lt4:platform>
                  <lt4:operator>TransPennine Express</lt4:operator>
                  <lt4:operatorCode>TP</lt4:operatorCode>
                  <lt4:serviceType>train</lt4:serviceType>
                  <lt4:serviceID>yr1QXTDLYk4wC30cR1zj5w==</lt4:serviceID>
                  <lt5:rsid>TP504400</lt5:rsid>
                  <lt5:origin>
                     <lt4:location>
                        <lt4:locationName>Manchester Airport</lt4:locationName>
                        <lt4:crs>MIA</lt4:crs>
                     </lt4:location>
                  </lt5:origin>
                  <lt5:destination>
                     <lt4:location>
                        <lt4:locationName>Middlesbrough</lt4:locationName>
                        <lt4:crs>MBR</lt4:crs>
                     </lt4:location>
                  </lt5:destination>
                  <lt5:previousCallingPoints>
                     <lt4:callingPointList>
                        <lt4:callingPoint>
                           <lt4:locationName>Manchester Airport</lt4:locationName>
                           <lt4:crs>MIA</lt4:crs>
                           <lt4:st>17:35</lt4:st>
                           <lt4:at>On time</lt4:at>
                        </lt4:callingPoint>
                        <lt4:callingPoint>
                           <lt4:locationName>Manchester Piccadilly</lt4:locationName>
                           <lt4:crs>MAN</lt4:crs>
                           <lt4:st>17:54</lt4:st>
                           <lt4:at>18:00</lt4:at>
                        </lt4:callingPoint>
                        <lt4:callingPoint>
                           <lt4:locationName>Huddersfield</lt4:locationName>
                           <lt4:crs>HUD</lt4:crs>
                           <lt4:st>18:27</lt4:st>
                           <lt4:at>18:29</lt4:at>
                        </lt4:callingPoint>
                     </lt4:callingPointList>
                  </lt5:previousCallingPoints>
               </lt5:service>
            </lt5:trainServices>
         </GetStationBoardResult>
      </GetArrBoardWithDetailsResponse>
   </soap:Body>
</soap:Envelope>


LDB-STAFF
https://lite.realtime.nationalrail.co.uk/OpenLDBSVWS/ldbsv10.asmx

Query:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:typ="http://thalesgroup.com/RTTI/2013-11-28/Token/types" xmlns:ldb="http://thalesgroup.com/RTTI/2016-02-16/ldbsv/">
   <soap:Header>
      <typ:AccessToken>
         <typ:TokenValue>nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn</typ:TokenValue>
      </typ:AccessToken>
   </soap:Header>
   <soap:Body>
      <ldb:GetArrBoardWithDetailsRequest>
         <ldb:numRows>1</ldb:numRows>
         <ldb:crs>LDS</ldb:crs>
         <ldb:time>2016-10-18T08:30:00</ldb:time>
         <ldb:timeWindow>5</ldb:timeWindow>
         <ldb:filtercrs></ldb:filtercrs>
         <ldb:filterType>to</ldb:filterType>
         <ldb:filterTOC></ldb:filterTOC>
         <ldb:services>PBS</ldb:services>
         <ldb:getNonPassengerServices>true</ldb:getNonPassengerServices>
      </ldb:GetArrBoardWithDetailsRequest>
   </soap:Body>
</soap:Envelope>

Response:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetArrBoardWithDetailsResponse xmlns="http://thalesgroup.com/RTTI/2016-02-16/ldbsv/">
         <GetBoardWithDetailsResult xmlns:c1="http://thalesgroup.com/RTTI/2007-10-10/ldb/commontypes" xmlns:t6="http://thalesgroup.com/RTTI/2014-02-20/ldbsv/types" xmlns:t5="http://thalesgroup.com/RTTI/2012-01-13/ldbsv/types">
            <t6:generatedAt>2016-10-18T19:00:50.7511836+01:00</t6:generatedAt>
            <t6:locationName>Leeds</t6:locationName>
            <t6:crs>LDS</t6:crs>
            <t6:stationManager>Network Rail</t6:stationManager>
            <t6:stationManagerCode>RT</t6:stationManagerCode>
            <isTruncated xmlns="http://thalesgroup.com/RTTI/2016-02-16/ldbsv/types">true</isTruncated>
            <trainServices xmlns="http://thalesgroup.com/RTTI/2016-02-16/ldbsv/types">
               <service>
                  <rid>201610188970611</rid>
                  <uid>Y70611</uid>
                  <trainid>1P17</trainid>
                  <rsid>TP520500</rsid>
                  <sdd>2016-10-18</sdd>
                  <operator>TransPennine Express</operator>
                  <operatorCode>TP</operatorCode>
                  <sta>2016-10-18T08:20:00</sta>
                  <ata>2016-10-18T08:25:12</ata>
                  <arrivalType>Actual</arrivalType>
                  <std>2016-10-18T08:24:00</std>
                  <atd>2016-10-18T08:28:07</atd>
                  <departureType>Actual</departureType>
                  <departureSource>TD</departureSource>
                  <platform>16A</platform>
                  <origin>
                     <t6:location>
                        <t5:locationName>Scarborough</t5:locationName>
                        <t5:crs>SCA</t5:crs>
                        <t5:tiploc>SCARBRO</t5:tiploc>
                     </t6:location>
                  </origin>
                  <destination>
                     <t6:location>
                        <t5:locationName>Manchester Airport</t5:locationName>
                        <t5:crs>MIA</t5:crs>
                        <t5:tiploc>MNCRIAP</t5:tiploc>
                     </t6:location>
                  </destination>
                  <category>XX</category>
                  <activities>T</activities>
                  <previousLocations>
                     <location>
                        <locationName>Scarborough</locationName>
                        <tiploc>SCARBRO</tiploc>
                        <crs>SCA</crs>
                        <platform>4</platform>
                        <std>2016-10-18T07:00:00</std>
                        <atd>2016-10-18T07:00:10</atd>
                        <departureType>Actual</departureType>
                        <departureSource>CIS</departureSource>
                        <departureSourceInstance>si01</departureSourceInstance>
                        <lateness>10</lateness>
                     </location>
                     <location>
                        <locationName>Seamer</locationName>
                        <tiploc>SEAMER</tiploc>
                        <crs>SEM</crs>
                        <platform>1</platform>
                        <sta>2016-10-18T07:05:00</sta>
                        <ata>2016-10-18T07:05:10</ata>
                        <arrivalType>Actual</arrivalType>
                        <arrivalSource>CIS</arrivalSource>
                        <arrivalSourceInstance>si01</arrivalSourceInstance>
                        <std>2016-10-18T07:05:00</std>
                        <atd>2016-10-18T07:06:29</atd>
                        <departureType>Actual</departureType>
                        <departureSource>CIS</departureSource>
                        <departureSourceInstance>si01</departureSourceInstance>
                        <lateness>60</lateness>
                     </location>
                     <location>
                        <locationName>Malton</locationName>
                        <tiploc>MALTON</tiploc>
                        <crs>MLT</crs>
                        <platform>1</platform>
                        <sta>2016-10-18T07:22:00</sta>
                        <ata>2016-10-18T07:23:35</ata>
                        <arrivalType>Actual</arrivalType>
                        <arrivalSource>CIS</arrivalSource>
                        <arrivalSourceInstance>si01</arrivalSourceInstance>
                        <std>2016-10-18T07:23:00</std>
                        <atd>2016-10-18T07:24:00</atd>
                        <departureType>Actual</departureType>
                        <departureSource>TRUST</departureSource>
                        <departureSourceInstance>Manu</departureSourceInstance>
                        <lateness>60</lateness>
                     </location>
                     <location>
                        <locationName>YORKSCA</locationName>
                        <tiploc>YORKSCA</tiploc>
                        <isPass>true</isPass>
                        <platformIsHidden>true</platformIsHidden>
                        <std>2016-10-18T07:47:00</std>
                        <departureType>NoLog</departureType>
                     </location>
                     <location>
                        <locationName>York</locationName>
                        <tiploc>YORK</tiploc>
                        <crs>YRK</crs>
                        <platform>5</platform>
                        <sta>2016-10-18T07:47:00</sta>
                        <ata>2016-10-18T07:49:31</ata>
                        <arrivalType>Actual</arrivalType>
                        <arrivalSource>TD</arrivalSource>
                        <std>2016-10-18T07:50:00</std>
                        <atd>2016-10-18T07:52:44</atd>
                        <departureType>Actual</departureType>
                        <departureSource>TD</departureSource>
                        <lateness>120</lateness>
                     </location>
                     <location>
                        <locationName>COLTONJ</locationName>
                        <tiploc>COLTONJ</tiploc>
                        <isPass>true</isPass>
                        <platformIsHidden>true</platformIsHidden>
                        <std>2016-10-18T07:55:30</std>
                        <atd>2016-10-18T07:57:35</atd>
                        <departureType>Actual</departureType>
                        <departureSource>TD</departureSource>
                        <lateness>120</lateness>
                     </location>
                     <location>
                        <locationName>Church Fenton</locationName>
                        <tiploc>CHFN</tiploc>
                        <crs>CHF</crs>
                        <isPass>true</isPass>
                        <platformIsHidden>true</platformIsHidden>
                        <std>2016-10-18T07:59:00</std>
                        <atd>2016-10-18T08:01:59</atd>
                        <departureType>Actual</departureType>
                        <departureSource>TD</departureSource>
                        <lateness>120</lateness>
                     </location>
                     <location>
                        <locationName>Micklefield</locationName>
                        <tiploc>MCKLFLD</tiploc>
                        <crs>MIK</crs>
                        <isPass>true</isPass>
                        <platformIsHidden>true</platformIsHidden>
                        <std>2016-10-18T08:02:30</std>
                        <atd>2016-10-18T08:06:15</atd>
                        <departureType>Actual</departureType>
                        <departureSource>TD</departureSource>
                        <lateness>240</lateness>
                     </location>
                     <location>
                        <locationName>Garforth</locationName>
                        <tiploc>GARFRTH</tiploc>
                        <crs>GRF</crs>
                        <platform>2</platform>
                        <sta>2016-10-18T08:09:00</sta>
                        <ata>2016-10-18T08:14:01</ata>
                        <arrivalType>Actual</arrivalType>
                        <arrivalSource>TD</arrivalSource>
                        <std>2016-10-18T08:09:00</std>
                        <atd>2016-10-18T08:14:58</atd>
                        <departureType>Actual</departureType>
                        <departureSource>TD</departureSource>
                        <lateness>300</lateness>
                     </location>
                     <location>
                        <locationName>Cross Gates</locationName>
                        <tiploc>CSGT</tiploc>
                        <crs>CRG</crs>
                        <isPass>true</isPass>
                        <platformIsHidden>true</platformIsHidden>
                        <std>2016-10-18T08:14:30</std>
                        <atd>2016-10-18T08:18:54</atd>
                        <departureType>Actual</departureType>
                        <departureSource>TD</departureSource>
                        <lateness>240</lateness>
                     </location>
                     <location>
                        <locationName>NEVLWJN</locationName>
                        <tiploc>NEVLWJN</tiploc>
                        <isPass>true</isPass>
                        <platformIsHidden>true</platformIsHidden>
                        <std>2016-10-18T08:17:00</std>
                        <atd>2016-10-18T08:21:00</atd>
                        <departureType>Actual</departureType>
                        <departureSource>TRUST</departureSource>
                        <departureSourceInstance>Auto</departureSourceInstance>
                        <lateness>240</lateness>
                     </location>
                  </previousLocations>
               </service>
            </trainServices>
         </GetBoardWithDetailsResult>
      </GetArrBoardWithDetailsResponse>
   </soap:Body>
</soap:Envelope>