GetNextDepartures
Appearance
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:GetNextDeparturesRequest>
<ldb:crs>LDS</ldb:crs>
<ldb:filterList>
<ldb:crs>DON</ldb:crs>
</ldb:filterList>
<ldb:timeOffset>0</ldb:timeOffset>
<ldb:timeWindow>120</ldb:timeWindow>
</ldb:GetNextDeparturesRequest>
</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>
<GetNextDeparturesResponse 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:05:26.1250083+01:00</lt4:generatedAt>
<lt4:locationName>Leeds</lt4:locationName>
<lt4:crs>LDS</lt4:crs>
<lt4:platformAvailable>true</lt4:platformAvailable>
<lt5:departures>
<lt5:destination crs="DON">
<lt5:service>
<lt4:std>22:40</lt4:std>
<lt4:etd>On time</lt4:etd>
<lt4:platform>12C</lt4:platform>
<lt4:operator>Northern</lt4:operator>
<lt4:operatorCode>NT</lt4:operatorCode>
<lt4:serviceType>train</lt4:serviceType>
<lt4:serviceID>C8oHyl551Y7OqoEXb6dJGg==</lt4:serviceID>
<lt5:rsid>NT020800</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>Doncaster</lt4:locationName>
<lt4:crs>DON</lt4:crs>
</lt4:location>
</lt5:destination>
</lt5:service>
</lt5:destination>
</lt5:departures>
</DeparturesBoard>
</GetNextDeparturesResponse>
</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:GetNextDeparturesRequest>
<ldb:crs>LDS</ldb:crs>
<ldb:filterList>
<ldb:crs>DON</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:GetNextDeparturesRequest>
</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>
<GetNextDeparturesResponse 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:13:45.3030085+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="DON">
<service>
<rid>201610188920887</rid>
<uid>Y20887</uid>
<trainid>2B35</trainid>
<rsid>NT020800</rsid>
<sdd>2016-10-18</sdd>
<operator>Northern</operator>
<operatorCode>NT</operatorCode>
<std>2016-10-18T22:40:00</std>
<etd>2016-10-18T22:40:00</etd>
<departureType>Forecast</departureType>
<departureSource>Darwin</departureSource>
<platform>12C</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>Doncaster</t5:locationName>
<t5:crs>DON</t5:crs>
<t5:tiploc>DONC</t5:tiploc>
</t6:location>
</destination>
<category>OO</category>
<activities>TB</activities>
</service>
</destination>
</departures>
</DeparturesBoard>
</GetNextDeparturesResponse>
</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 • KnowledgeBase • DTD • Locations (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 |