GetDepartureBoard

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:GetDepartureBoardRequest>
         <ldb:numRows>2</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:GetDepartureBoardRequest>
   </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>
      <GetDepartureBoardResponse 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-18T21:39:20.0286915+01:00</lt4:generatedAt>
            <lt4:locationName>Leeds</lt4:locationName>
            <lt4:crs>LDS</lt4:crs>
            <lt4:platformAvailable>true</lt4:platformAvailable>
            <lt5:trainServices>
               <lt5:service>
                  <lt4:std>21:41</lt4:std>
                  <lt4:etd>On time</lt4:etd>
                  <lt4:platform>16A</lt4:platform>
                  <lt4:operator>TransPennine Express</lt4:operator>
                  <lt4:operatorCode>TP</lt4:operatorCode>
                  <lt4:serviceType>train</lt4:serviceType>
                  <lt4:serviceID>yCIuNf/yHJigUbNDGThmFA==</lt4:serviceID>
                  <lt5:rsid>TP565300</lt5:rsid>
                  <lt5:origin>
                     <lt4:location>
                        <lt4:locationName>York</lt4:locationName>
                        <lt4:crs>YRK</lt4:crs>
                     </lt4:location>
                  </lt5:origin>
                  <lt5:destination>
                     <lt4:location>
                        <lt4:locationName>Manchester Airport</lt4:locationName>
                        <lt4:crs>MIA</lt4:crs>
                     </lt4:location>
                  </lt5:destination>
               </lt5:service>
               <lt5:service>
                  <lt4:std>21:48</lt4:std>
                  <lt4:etd>On time</lt4:etd>
                  <lt4:platform>12D</lt4:platform>
                  <lt4:operator>Northern</lt4:operator>
                  <lt4:operatorCode>NT</lt4:operatorCode>
                  <lt4:serviceType>train</lt4:serviceType>
                  <lt4:serviceID>BbiHge2XBAOiBXbapzev2Q==</lt4:serviceID>
                  <lt5:rsid>NT032600</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>Sheffield</lt4:locationName>
                        <lt4:crs>SHF</lt4:crs>
                     </lt4:location>
                  </lt5:destination>
               </lt5:service>
            </lt5:trainServices>
         </GetStationBoardResult>
      </GetDepartureBoardResponse>
   </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