GetArrivalBoardByX

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

Sample query & responses are shown below;

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

X can be either CRS or TIPLOC. CRS 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:GetArrivalBoardByCRSRequest>
         <ldb:numRows>2</ldb:numRows>
         <ldb:crs>CHI</ldb:crs>
         <ldb:time>2016-10-20T05:00:00</ldb:time>
         <ldb:timeWindow>120</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:GetArrivalBoardByCRSRequest>
   </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>
      <GetArrivalBoardByCRSResponse 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:27:57.2951676+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>201610207690951</rid>
                  <uid>L90951</uid>
                  <trainid>5T05</trainid>
                  <sdd>2016-10-20</sdd>
                  <operator>London Overground</operator>
                  <operatorCode>LO</operatorCode>
                  <isPassengerService>false</isPassengerService>
                  <isOperationalCall>true</isOperationalCall>
                  <sta>2016-10-20T05:15:00</sta>
                  <arrivalType>Delayed</arrivalType>
                  <platform>1</platform>
                  <platformIsHidden>true</platformIsHidden>
                  <origin>
                     <t6:location>
                        <t5:locationName>CHINCS5</t5:locationName>
                        <t5:tiploc>CHINCS5</t5:tiploc>
                        <t6:isOperationalEndPoint>true</t6:isOperationalEndPoint>
                     </t6:location>
                  </origin>
                  <destination>
                     <t6:location>
                        <t5:locationName>Chingford</t5:locationName>
                        <t5:crs>CHI</t5:crs>
                        <t5:tiploc>CHINGFD</t5:tiploc>
                        <t6:isOperationalEndPoint>true</t6:isOperationalEndPoint>
                     </t6:location>
                  </destination>
                  <category>EE</category>
                  <activities>TF</activities>
               </service>
               <service>
                  <rid>201610207691453</rid>
                  <uid>L91453</uid>
                  <trainid>5T07</trainid>
                  <sdd>2016-10-20</sdd>
                  <operator>London Overground</operator>
                  <operatorCode>LO</operatorCode>
                  <isPassengerService>false</isPassengerService>
                  <isOperationalCall>true</isOperationalCall>
                  <sta>2016-10-20T05:30:00</sta>
                  <arrivalType>Delayed</arrivalType>
                  <platform>3</platform>
                  <platformIsHidden>true</platformIsHidden>
                  <origin>
                     <t6:location>
                        <t5:locationName>CHINCS4</t5:locationName>
                        <t5:tiploc>CHINCS4</t5:tiploc>
                        <t6:isOperationalEndPoint>true</t6:isOperationalEndPoint>
                     </t6:location>
                  </origin>
                  <destination>
                     <t6:location>
                        <t5:locationName>Chingford</t5:locationName>
                        <t5:crs>CHI</t5:crs>
                        <t5:tiploc>CHINGFD</t5:tiploc>
                        <t6:isOperationalEndPoint>true</t6:isOperationalEndPoint>
                     </t6:location>
                  </destination>
                  <category>EE</category>
                  <activities>TF</activities>
               </service>
            </trainServices>
         </GetBoardResult>
      </GetArrivalBoardByCRSResponse>
   </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