↓ Output (cached 60s)


<?php
  
require("OpenLDBSVWS.php");
  
date_default_timezone_set("Europe/London");
  
$OpenLDBSVWS = new OpenLDBSVWS("YOUR_ACCESS_TOKEN");
  
$response $OpenLDBSVWS->GetDepartureBoardByCRS(10,"PAD",date("H:i:s",time()),120);
  
header("Content-Type: text/plain");
  
print_r($response);
?>
stdClass Object
(
    [GetBoardResult] => stdClass Object
        (
            [generatedAt] => 2022-01-18T14:32:10.7984811+00:00
            [locationName] => London Paddington
            [crs] => PAD
            [stationManager] => Network Rail
            [stationManagerCode] => RT
            [nrccMessages] => stdClass Object
                (
                    [message] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [category] => Train service
                                    [severity] => Minor
                                    [xhtmlMessage] => 
Some train services may be subject to short notice alterations due to the impact of COVID and train crew availability issues. Please check before you travel. More details can be found in <a href="https://www.nationalrail.co.uk/service_disruptions/today.aspx">Latest Travel News.</a>
                                )

                        )

                )

            [isTruncated] => 1
            [trainServices] => stdClass Object
                (
                    [service] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [rid] => 202201187191975
                                    [uid] => G91975
                                    [trainid] => 9T79
                                    [sdd] => 2022-01-18
                                    [operator] => TFL Rail
                                    [operatorCode] => XR
                                    [std] => 2022-01-18T14:32:00
                                    [etd] => 2022-01-18T14:32:01
                                    [departureType] => Forecast
                                    [departureSource] => Darwin
                                    [platform] => 11
                                    [platformIsHidden] => 1
                                    [serviceIsSupressed] => 1
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                            [tiploc] => PADTON
                                                        )

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Hayes & Harlington
                                                            [crs] => HAY
                                                            [tiploc] => HAYESAH
                                                        )

                                                )

                                        )

                                    [category] => OO
                                    [activities] => TB          
                                )

                            [1] => stdClass Object
                                (
                                    [rid] => 202201187687015
                                    [uid] => L87015
                                    [trainid] => 1C18
                                    [rsid] => GW433700
                                    [sdd] => 2022-01-18
                                    [operator] => Great Western Railway
                                    [operatorCode] => GW
                                    [std] => 2022-01-18T14:32:00
                                    [etd] => 2022-01-18T14:32:01
                                    [departureType] => Forecast
                                    [departureSource] => Darwin
                                    [platform] => 5
                                    [platformIsHidden] => 1
                                    [serviceIsSupressed] => 1
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                            [tiploc] => PADTON
                                                        )

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Weston-super-Mare
                                                            [crs] => WSM
                                                            [tiploc] => WSMARE
                                                        )

                                                )

                                        )

                                    [category] => XX
                                    [activities] => TB          
                                )

                            [2] => stdClass Object
                                (
                                    [rid] => 202201187687065
                                    [uid] => L87065
                                    [trainid] => 1C85
                                    [rsid] => GW132500
                                    [sdd] => 2022-01-18
                                    [operator] => Great Western Railway
                                    [operatorCode] => GW
                                    [std] => 2022-01-18T14:36:00
                                    [etd] => 2022-01-18T14:36:00
                                    [departureType] => Forecast
                                    [departureSource] => TD
                                    [platform] => 9
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                            [tiploc] => PADTON
                                                        )

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Paignton
                                                            [crs] => PGN
                                                            [tiploc] => PAIGNTN
                                                        )

                                                )

                                        )

                                    [category] => XX
                                    [activities] => TB          
                                )

                            [3] => stdClass Object
                                (
                                    [rid] => 202201186731990
                                    [uid] => C31990
                                    [trainid] => 1T62
                                    [rsid] => HX010000
                                    [sdd] => 2022-01-18
                                    [operator] => Heathrow Express
                                    [operatorCode] => HX
                                    [std] => 2022-01-18T14:40:00
                                    [etd] => 2022-01-18T14:40:00
                                    [departureType] => Forecast
                                    [departureSource] => TD
                                    [platform] => 7
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                            [tiploc] => PADTON
                                                        )

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Heathrow Airport T5
                                                            [crs] => HWV
                                                            [tiploc] => HTRWTM5
                                                        )

                                                )

                                        )

                                    [category] => XX
                                    [activities] => TB          
                                )

                            [4] => stdClass Object
                                (
                                    [rid] => 202201187192090
                                    [uid] => G92090
                                    [trainid] => 9R80
                                    [sdd] => 2022-01-18
                                    [operator] => TFL Rail
                                    [operatorCode] => XR
                                    [std] => 2022-01-18T14:43:00
                                    [etd] => 2022-01-18T14:43:00
                                    [departureType] => Forecast
                                    [departureSource] => TD
                                    [platform] => 12
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                            [tiploc] => PADTON
                                                        )

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Reading
                                                            [crs] => RDG
                                                            [tiploc] => RDNGSTN
                                                        )

                                                )

                                        )

                                    [category] => OO
                                    [activities] => TB          
                                )

                            [5] => stdClass Object
                                (
                                    [rid] => 202201187191876
                                    [uid] => G91876
                                    [trainid] => 9T81
                                    [rsid] => XR214400
                                    [sdd] => 2022-01-18
                                    [operator] => TFL Rail
                                    [operatorCode] => XR
                                    [std] => 2022-01-18T14:48:00
                                    [etd] => 2022-01-18T14:48:00
                                    [departureType] => Forecast
                                    [departureSource] => Darwin
                                    [platform] => 11
                                    [platformIsHidden] => 1
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                            [tiploc] => PADTON
                                                        )

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Heathrow Airport T5
                                                            [crs] => HWV
                                                            [tiploc] => HTRWTM5
                                                        )

                                                )

                                        )

                                    [category] => OO
                                    [activities] => TB          
                                )

                            [6] => stdClass Object
                                (
                                    [rid] => 202201187686970
                                    [uid] => L86970
                                    [trainid] => 1B19
                                    [rsid] => GW633300
                                    [sdd] => 2022-01-18
                                    [operator] => Great Western Railway
                                    [operatorCode] => GW
                                    [std] => 2022-01-18T14:48:00
                                    [etd] => 2022-01-18T14:48:00
                                    [departureType] => Forecast
                                    [departureSource] => TD
                                    [platform] => 2
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                            [tiploc] => PADTON
                                                        )

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Swansea
                                                            [crs] => SWA
                                                            [tiploc] => SWANSEA
                                                        )

                                                )

                                        )

                                    [category] => XX
                                    [activities] => TB          
                                )

                            [7] => stdClass Object
                                (
                                    [rid] => 202201187687449
                                    [uid] => L87449
                                    [trainid] => 1W29
                                    [rsid] => GW733900
                                    [sdd] => 2022-01-18
                                    [operator] => Great Western Railway
                                    [operatorCode] => GW
                                    [std] => 2022-01-18T14:50:00
                                    [etd] => 2022-01-18T14:50:00
                                    [departureType] => Forecast
                                    [departureSource] => TD
                                    [platform] => 1
                                    [platformIsHidden] => 1
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                            [tiploc] => PADTON
                                                        )

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Worcester Foregate Street
                                                            [crs] => WOF
                                                            [tiploc] => WORCSFS
                                                        )

                                                )

                                        )

                                    [category] => XX
                                    [activities] => TB          
                                )

                            [8] => stdClass Object
                                (
                                    [rid] => 202201186731989
                                    [uid] => C31989
                                    [trainid] => 1T63
                                    [sdd] => 2022-01-18
                                    [operator] => Heathrow Express
                                    [operatorCode] => HX
                                    [std] => 2022-01-18T14:55:00
                                    [etd] => 2022-01-18T14:55:00
                                    [departureType] => Forecast
                                    [departureSource] => Darwin
                                    [platform] => 7
                                    [platformIsHidden] => 1
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                            [tiploc] => PADTON
                                                        )

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Heathrow Airport T5
                                                            [crs] => HWV
                                                            [tiploc] => HTRWTM5
                                                        )

                                                )

                                        )

                                    [category] => XX
                                    [activities] => TB          
                                )

                            [9] => stdClass Object
                                (
                                    [rid] => 202201187688418
                                    [uid] => L88418
                                    [trainid] => 2N42
                                    [sdd] => 2022-01-18
                                    [operator] => Great Western Railway
                                    [operatorCode] => GW
                                    [std] => 2022-01-18T14:57:00
                                    [etd] => 2022-01-18T14:57:00
                                    [departureType] => Forecast
                                    [departureSource] => TD
                                    [platform] => 14
                                    [platformIsHidden] => 1
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                            [tiploc] => PADTON
                                                        )

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Didcot Parkway
                                                            [crs] => DID
                                                            [tiploc] => DIDCOTP
                                                        )

                                                )

                                        )

                                    [category] => OO
                                    [activities] => TB          
                                )

                        )

                )

        )

)