GetNextDeparturesWithDetails

From Open Rail Data Wiki
Jump to navigation Jump to search

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:GetNextDeparturesWithDetailsRequest>
         <ldb:crs>LDS</ldb:crs>
         <ldb:filterList>
            <ldb:crs>ILK</ldb:crs>
         </ldb:filterList>
         <ldb:timeOffset>0</ldb:timeOffset>
         <ldb:timeWindow>120</ldb:timeWindow>
      </ldb:GetNextDeparturesWithDetailsRequest>
   </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>
      <GetNextDeparturesWithDetailsResponse xmlns="http://thalesgroup.com/RTTI/2016-02-16/ldb/">
         <DeparturesBoard 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-18T22:16:11.6759319+01:00</lt4:generatedAt>
            <lt4:locationName>Leeds</lt4:locationName>
            <lt4:crs>LDS</lt4:crs>
            <lt4:platformAvailable>true</lt4:platformAvailable>
            <lt5:departures>
               <lt5:destination crs="ILK">
                  <lt5:service>
                     <lt4:std>23:15</lt4:std>
                     <lt4:etd>On time</lt4:etd>
                     <lt4:platform>4B</lt4:platform>
                     <lt4:operator>Northern</lt4:operator>
                     <lt4:operatorCode>NT</lt4:operatorCode>
                     <lt4:serviceType>train</lt4:serviceType>
                     <lt4:serviceID>Az8Wq55pn8Df6o4UFxxBcA==</lt4:serviceID>
                     <lt5:rsid>NT699100</lt5:rsid>
                     <lt5:origin>
                        <lt4:location>
                           <lt4:locationName>Leeds</lt4:locationName>
                           <lt4:crs>LDS</lt4:crs>
                        </lt4:location>
                     </lt5:origin>
                     <lt5:destination>
                        <lt4:location>
                           <lt4:locationName>Ilkley</lt4:locationName>
                           <lt4:crs>ILK</lt4:crs>
                        </lt4:location>
                     </lt5:destination>
                     <lt5:subsequentCallingPoints>
                        <lt4:callingPointList>
                           <lt4:callingPoint>
                              <lt4:locationName>Guiseley</lt4:locationName>
                              <lt4:crs>GSY</lt4:crs>
                              <lt4:st>23:26</lt4:st>
                              <lt4:et>On time</lt4:et>
                           </lt4:callingPoint>
                           <lt4:callingPoint>
                              <lt4:locationName>Menston</lt4:locationName>
                              <lt4:crs>MNN</lt4:crs>
                              <lt4:st>23:30</lt4:st>
                              <lt4:et>On time</lt4:et>
                           </lt4:callingPoint>
                           <lt4:callingPoint>
                              <lt4:locationName>Burley-in-Wharfedale</lt4:locationName>
                              <lt4:crs>BUW</lt4:crs>
                              <lt4:st>23:32</lt4:st>
                              <lt4:et>On time</lt4:et>
                           </lt4:callingPoint>
                           <lt4:callingPoint>
                              <lt4:locationName>Ben Rhydding</lt4:locationName>
                              <lt4:crs>BEY</lt4:crs>
                              <lt4:st>23:36</lt4:st>
                              <lt4:et>On time</lt4:et>
                           </lt4:callingPoint>
                           <lt4:callingPoint>
                              <lt4:locationName>Ilkley</lt4:locationName>
                              <lt4:crs>ILK</lt4:crs>
                              <lt4:st>23:43</lt4:st>
                              <lt4:et>On time</lt4:et>
                           </lt4:callingPoint>
                        </lt4:callingPointList>
                     </lt5:subsequentCallingPoints>
                  </lt5:service>
               </lt5:destination>
            </lt5:departures>
         </DeparturesBoard>
      </GetNextDeparturesWithDetailsResponse>
   </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:GetNextDeparturesWithDetailsRequest>
         <ldb:crs>LDS</ldb:crs>
         <ldb:filterList>
            <ldb:crs>ILK</ldb:crs>
         </ldb:filterList>
         <ldb:time>2016-10-18T22:00:00</ldb:time>
         <ldb:timeWindow>120</ldb:timeWindow>
         <ldb:filterTOC></ldb:filterTOC>
         <ldb:services>PBS</ldb:services>
      </ldb:GetNextDeparturesWithDetailsRequest>
   </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>
      <GetNextDeparturesWithDetailsResponse xmlns="http://thalesgroup.com/RTTI/2016-02-16/ldbsv/">
         <DeparturesBoard 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-18T22:18:05.5232723+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>
            <departures xmlns="http://thalesgroup.com/RTTI/2016-02-16/ldbsv/types">
               <destination crs="ILK">
                  <service>
                     <rid>201610188915987</rid>
                     <uid>Y15987</uid>
                     <trainid>2V66</trainid>
                     <rsid>NT698600</rsid>
                     <sdd>2016-10-18</sdd>
                     <operator>Northern</operator>
                     <operatorCode>NT</operatorCode>
                     <std>2016-10-18T22:07:00</std>
                     <atd>2016-10-18T22:08:26</atd>
                     <departureType>Actual</departureType>
                     <departureSource>TD</departureSource>
                     <platform>2A</platform>
                     <origin>
                        <t6:location>
                           <t5:locationName>Leeds</t5:locationName>
                           <t5:crs>LDS</t5:crs>
                           <t5:tiploc>LEEDS</t5:tiploc>
                        </t6:location>
                     </origin>
                     <destination>
                        <t6:location>
                           <t5:locationName>Ilkley</t5:locationName>
                           <t5:crs>ILK</t5:crs>
                           <t5:tiploc>ILKLEY</t5:tiploc>
                        </t6:location>
                     </destination>
                     <category>OO</category>
                     <activities>TB</activities>
                     <subsequentLocations>
                        <location>
                           <locationName>LEEDSWJ</locationName>
                           <tiploc>LEEDSWJ</tiploc>
                           <isPass>true</isPass>
                           <platformIsHidden>true</platformIsHidden>
                           <std>2016-10-18T22:08:00</std>
                           <departureType>NoLog</departureType>
                        </location>
                        <location>
                           <locationName>ARMLJCN</locationName>
                           <tiploc>ARMLJCN</tiploc>
                           <isPass>true</isPass>
                           <platformIsHidden>true</platformIsHidden>
                           <std>2016-10-18T22:09:30</std>
                           <atd>2016-10-18T22:10:23</atd>
                           <departureType>Actual</departureType>
                           <departureSource>TD</departureSource>
                           <lateness>60</lateness>
                        </location>
                        <location>
                           <locationName>Kirkstall Forge</locationName>
                           <tiploc>KRKSLFR</tiploc>
                           <crs>KLF</crs>
                           <platform>2</platform>
                           <platformIsHidden>true</platformIsHidden>
                           <sta>2016-10-18T22:13:00</sta>
                           <ata>2016-10-18T22:14:00</ata>
                           <arrivalType>Actual</arrivalType>
                           <arrivalSource>TRUST</arrivalSource>
                           <arrivalSourceInstance>Auto</arrivalSourceInstance>
                           <std>2016-10-18T22:14:00</std>
                           <atd>2016-10-18T22:15:00</atd>
                           <departureType>Actual</departureType>
                           <departureSource>TRUST</departureSource>
                           <departureSourceInstance>Auto</departureSourceInstance>
                           <lateness>60</lateness>
                        </location>
                        <location>
                           <locationName>APERLYJ</locationName>
                           <tiploc>APERLYJ</tiploc>
                           <isPass>true</isPass>
                           <platformIsHidden>true</platformIsHidden>
                           <std>2016-10-18T22:16:30</std>
                           <etd>2016-10-18T22:18:03</etd>
                           <departureType>Forecast</departureType>
                           <departureSource>TD</departureSource>
                        </location>
                        <location>
                           <locationName>Guiseley</locationName>
                           <tiploc>GUISELY</tiploc>
                           <crs>GSY</crs>
                           <platform>1</platform>
                           <sta>2016-10-18T22:21:00</sta>
                           <eta>2016-10-18T22:22:03</eta>
                           <arrivalType>Forecast</arrivalType>
                           <arrivalSource>Darwin</arrivalSource>
                           <std>2016-10-18T22:21:00</std>
                           <etd>2016-10-18T22:22:33</etd>
                           <departureType>Forecast</departureType>
                           <departureSource>Darwin</departureSource>
                        </location>
                        <location>
                           <locationName>Menston</locationName>
                           <tiploc>MENSTON</tiploc>
                           <crs>MNN</crs>
                           <platform>1</platform>
                           <sta>2016-10-18T22:24:00</sta>
                           <eta>2016-10-18T22:25:03</eta>
                           <arrivalType>Forecast</arrivalType>
                           <arrivalSource>Darwin</arrivalSource>
                           <std>2016-10-18T22:24:00</std>
                           <etd>2016-10-18T22:25:33</etd>
                           <departureType>Forecast</departureType>
                           <departureSource>Darwin</departureSource>
                        </location>
                        <location>
                           <locationName>Burley-in-Wharfedale</locationName>
                           <tiploc>BURLYIW</tiploc>
                           <crs>BUW</crs>
                           <platform>1</platform>
                           <sta>2016-10-18T22:27:00</sta>
                           <eta>2016-10-18T22:27:33</eta>
                           <arrivalType>Forecast</arrivalType>
                           <arrivalSource>Darwin</arrivalSource>
                           <std>2016-10-18T22:27:00</std>
                           <etd>2016-10-18T22:28:03</etd>
                           <departureType>Forecast</departureType>
                           <departureSource>Darwin</departureSource>
                        </location>
                        <location>
                           <locationName>Ben Rhydding</locationName>
                           <tiploc>BNRHYDN</tiploc>
                           <crs>BEY</crs>
                           <platform>1</platform>
                           <sta>2016-10-18T22:31:00</sta>
                           <eta>2016-10-18T22:31:03</eta>
                           <arrivalType>Forecast</arrivalType>
                           <arrivalSource>Darwin</arrivalSource>
                           <std>2016-10-18T22:31:00</std>
                           <etd>2016-10-18T22:31:33</etd>
                           <departureType>Forecast</departureType>
                           <departureSource>Darwin</departureSource>
                        </location>
                        <location>
                           <locationName>Ilkley</locationName>
                           <tiploc>ILKLEY</tiploc>
                           <crs>ILK</crs>
                           <platform>1</platform>
                           <platformIsHidden>true</platformIsHidden>
                           <sta>2016-10-18T22:37:00</sta>
                           <eta>2016-10-18T22:37:00</eta>
                           <arrivalType>Forecast</arrivalType>
                           <arrivalSource>Darwin</arrivalSource>
                        </location>
                     </subsequentLocations>
                  </service>
               </destination>
            </departures>
         </DeparturesBoard>
      </GetNextDeparturesWithDetailsResponse>
   </soap:Body>
</soap:Envelope>


National Rail Enquiries Data Feeds
Data Feeds About the Feeds Darwin Webservice (Public) Darwin Webservice (Staff) Historical Service Performance Push Port
LDB API About
LDB-SV API About
HSP About
Push Port About XML Schemas Schedule Data Association Data Train Status Data Station Messages