GetDepartureBoardByX

From Open Rail Data Wiki

Sample query & responses are shown below;

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

X can be either CRS or TIPLOC. TIPLOC is used in this example.

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:GetDepartureBoardByTIPLOCRequest>
         <ldb:numRows>2</ldb:numRows>
         <ldb:tiploc>CHINGFD</ldb:tiploc>
         <ldb:time>2016-10-20T14:00:00</ldb:time>
         <ldb:timeWindow>120</ldb:timeWindow>
         <ldb:filterTiploc></ldb:filterTiploc>
         <ldb:filterType>to</ldb:filterType>
         <ldb:filterTOC></ldb:filterTOC>
         <ldb:services>PBS</ldb:services>
         <ldb:getNonPassengerServices>true</ldb:getNonPassengerServices>
      </ldb:GetDepartureBoardByTIPLOCRequest>
   </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>
      <GetDepartureBoardByTIPLOCResponse xmlns="http://thalesgroup.com/RTTI/2016-02-16/ldbsv/">
         <GetBoardResult 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-20T22:47:06.2828368+01:00</t6:generatedAt>
            <t6:locationName>Chingford</t6:locationName>
            <t6:crs>CHI</t6:crs>
            <t6:stationManager>London Overground</t6:stationManager>
            <t6:stationManagerCode>LO</t6:stationManagerCode>
            <isTruncated xmlns="http://thalesgroup.com/RTTI/2016-02-16/ldbsv/types">true</isTruncated>
            <qos xmlns="http://thalesgroup.com/RTTI/2016-02-16/ldbsv/types">-1</qos>
            <trainServices xmlns="http://thalesgroup.com/RTTI/2016-02-16/ldbsv/types">
               <service>
                  <rid>201610207691252</rid>
                  <uid>L91252</uid>
                  <trainid>2T73</trainid>
                  <rsid>LO089400</rsid>
                  <sdd>2016-10-20</sdd>
                  <operator>London Overground</operator>
                  <operatorCode>LO</operatorCode>
                  <std>2016-10-20T14:10:00</std>
                  <atd>2016-10-20T14:10:24</atd>
                  <departureType>Actual</departureType>
                  <departureSource>TD</departureSource>
                  <platform>2</platform>
                  <origin>
                     <t6:location>
                        <t5:locationName>Chingford</t5:locationName>
                        <t5:crs>CHI</t5:crs>
                        <t5:tiploc>CHINGFD</t5:tiploc>
                     </t6:location>
                  </origin>
                  <destination>
                     <t6:location>
                        <t5:locationName>London Liverpool Street</t5:locationName>
                        <t5:crs>LST</t5:crs>
                        <t5:tiploc>LIVST</t5:tiploc>
                     </t6:location>
                  </destination>
                  <category>OO</category>
                  <activities>TB</activities>
               </service>
               <service>
                  <rid>201610207690651</rid>
                  <uid>L90651</uid>
                  <trainid>2T75</trainid>
                  <rsid>LO067300</rsid>
                  <sdd>2016-10-20</sdd>
                  <operator>London Overground</operator>
                  <operatorCode>LO</operatorCode>
                  <std>2016-10-20T14:25:00</std>
                  <atd>2016-10-20T14:25:28</atd>
                  <departureType>Actual</departureType>
                  <departureSource>TD</departureSource>
                  <platform>2</platform>
                  <origin>
                     <t6:location>
                        <t5:locationName>Chingford</t5:locationName>
                        <t5:crs>CHI</t5:crs>
                        <t5:tiploc>CHINGFD</t5:tiploc>
                     </t6:location>
                  </origin>
                  <destination>
                     <t6:location>
                        <t5:locationName>London Liverpool Street</t5:locationName>
                        <t5:crs>LST</t5:crs>
                        <t5:tiploc>LIVST</t5:tiploc>
                     </t6:location>
                  </destination>
                  <category>OO</category>
                  <activities>TB</activities>
               </service>
            </trainServices>
         </GetBoardResult>
      </GetDepartureBoardByTIPLOCResponse>
   </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 KnowledgeBaseDTDLocations (PoC)Real Time Journey Planner
LDB API About
LDB-SV API About
HSP About
DTD About Fares Timetable
Push Port About XML Schemas Schedules Associations Train Status Station Messages Alarms Train Order Train Alerts Formations Formation loading