GetArrivalDepartureBoardByX: Difference between revisions

From Open Rail Data Wiki
Q (talk | contribs)
GetArrivalDepartureBoardByX Sample query & responses
 
(No difference)

Latest revision as of 21:50, 20 October 2016

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:GetArrivalDepartureBoardByCRSRequest>
         <ldb:numRows>2</ldb:numRows>
         <ldb:crs>GLC</ldb:crs>
         <ldb:time>18: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:GetArrivalDepartureBoardByCRSRequest>
   </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>
      <GetArrivalDepartureBoardByCRSResponse 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:50:03.246968+01:00</t6:generatedAt>
            <t6:locationName>Glasgow Central</t6:locationName>
            <t6:crs>GLC</t6:crs>
            <t6:stationManager>Network Rail</t6:stationManager>
            <t6:stationManagerCode>RT</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>201610207135845</rid>
                  <uid>G35845</uid>
                  <trainid>2S09</trainid>
                  <rsid>SR498300</rsid>
                  <sdd>2016-10-20</sdd>
                  <operator>ScotRail</operator>
                  <operatorCode>SR</operatorCode>
                  <sta>2016-10-20T17:57:00</sta>
                  <ata>2016-10-20T17:59:09</ata>
                  <arrivalType>Actual</arrivalType>
                  <std>2016-10-20T17:57:00</std>
                  <atd>2016-10-20T17:59:56</atd>
                  <departureType>Actual</departureType>
                  <departureSource>TD</departureSource>
                  <platform>17</platform>
                  <origin>
                     <t6:location>
                        <t5:locationName>Motherwell</t5:locationName>
                        <t5:crs>MTH</t5:crs>
                        <t5:tiploc>MOTHRWL</t5:tiploc>
                     </t6:location>
                  </origin>
                  <destination>
                     <t6:location>
                        <t5:locationName>Dalmuir</t5:locationName>
                        <t5:crs>DMR</t5:crs>
                        <t5:tiploc>DALMUIR</t5:tiploc>
                        <t5:via>via Singer</t5:via>
                     </t6:location>
                  </destination>
                  <category>OO</category>
                  <activities>T</activities>
               </service>
               <service>
                  <rid>201610207136038</rid>
                  <uid>G36038</uid>
                  <trainid>2Y49</trainid>
                  <rsid>SR563200</rsid>
                  <sdd>2016-10-20</sdd>
                  <operator>ScotRail</operator>
                  <operatorCode>SR</operatorCode>
                  <sta>2016-10-20T17:57:00</sta>
                  <ata>2016-10-20T17:58:48</ata>
                  <arrivalType>Actual</arrivalType>
                  <platformIsHidden>true</platformIsHidden>
                  <origin>
                     <t6:location>
                        <t5:locationName>Edinburgh</t5:locationName>
                        <t5:crs>EDB</t5:crs>
                        <t5:tiploc>EDINBUR</t5:tiploc>
                     </t6:location>
                  </origin>
                  <destination>
                     <t6:location>
                        <t5:locationName>Glasgow Central</t5:locationName>
                        <t5:crs>GLC</t5:crs>
                        <t5:tiploc>GLGC</t5:tiploc>
                     </t6:location>
                  </destination>
                  <category>OO</category>
                  <activities>TF</activities>
               </service>
            </trainServices>
         </GetBoardResult>
      </GetArrivalDepartureBoardByCRSResponse>
   </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