↓ 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-05-27T08:24:59.5467733+01:00
            [locationName] => London Paddington
            [crs] => PAD
            [stationManager] => Network Rail
            [stationManagerCode] => RT
            [isTruncated] => 1
            [trainServices] => stdClass Object
                (
                    [service] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [rid] => 202205278081308
                                    [uid] => P81308
                                    [trainid] => 9U33
                                    [rsid] => XR007000
                                    [sdd] => 2022-05-27
                                    [operator] => TFL Rail
                                    [operatorCode] => XR
                                    [std] => 2022-05-27T08:23:00
                                    [atd] => 2022-05-27T08:23:00
                                    [departureType] => Actual
                                    [departureSource] => TRUST
                                    [departureSourceInstance] => Auto
                                    [platform] => A
                                    [platformIsHidden] => 1
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                            [tiploc] => PADTLL
                                                        )

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Abbey Wood
                                                            [crs] => ABW
                                                            [tiploc] => ABWDXR
                                                        )

                                                )

                                        )

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

                            [1] => stdClass Object
                                (
                                    [rid] => 202205277154161
                                    [uid] => G54161
                                    [trainid] => 1T37
                                    [sdd] => 2022-05-27
                                    [operator] => Heathrow Express
                                    [operatorCode] => HX
                                    [std] => 2022-05-27T08:25:00
                                    [etd] => 2022-05-27T08:25:00
                                    [departureType] => Forecast
                                    [departureSource] => TD
                                    [platform] => 7
                                    [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] => Heathrow Airport T5
                                                            [crs] => HWV
                                                            [tiploc] => HTRWTM5
                                                        )

                                                )

                                        )

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

                            [2] => stdClass Object
                                (
                                    [rid] => 202205278081310
                                    [uid] => P81310
                                    [trainid] => 9U34
                                    [rsid] => XR007200
                                    [sdd] => 2022-05-27
                                    [operator] => TFL Rail
                                    [operatorCode] => XR
                                    [std] => 2022-05-27T08:28:00
                                    [etd] => 2022-05-27T08:28:00
                                    [departureType] => Forecast
                                    [departureSource] => Darwin
                                    [platform] => A
                                    [platformIsHidden] => 1
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                            [tiploc] => PADTLL
                                                        )

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Abbey Wood
                                                            [crs] => ABW
                                                            [tiploc] => ABWDXR
                                                        )

                                                )

                                        )

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

                            [3] => stdClass Object
                                (
                                    [rid] => 202205278743595
                                    [uid] => W43595
                                    [trainid] => 1G07
                                    [sdd] => 2022-05-27
                                    [operator] => Great Western Railway
                                    [operatorCode] => GW
                                    [std] => 2022-05-27T08:28:00
                                    [etd] => 2022-05-27T08:28:00
                                    [departureType] => Forecast
                                    [departureSource] => TD
                                    [platform] => 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] => Cheltenham Spa
                                                            [crs] => CNM
                                                            [tiploc] => CHLTNHM
                                                        )

                                                )

                                        )

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

                            [4] => stdClass Object
                                (
                                    [rid] => 202205278085740
                                    [uid] => P85740
                                    [trainid] => 9R56
                                    [sdd] => 2022-05-27
                                    [operator] => TFL Rail
                                    [operatorCode] => XR
                                    [std] => 2022-05-27T08:29:00
                                    [etd] => 2022-05-27T08:29: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] => 202205278743443
                                    [uid] => W43443
                                    [trainid] => 1C06
                                    [sdd] => 2022-05-27
                                    [operator] => Great Western Railway
                                    [operatorCode] => GW
                                    [std] => 2022-05-27T08:32:00
                                    [etd] => 2022-05-27T08:32: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] => Bristol Temple Meads
                                                            [crs] => BRI
                                                            [tiploc] => BRSTLTM
                                                        )

                                                )

                                        )

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

                            [6] => stdClass Object
                                (
                                    [rid] => 202205278081312
                                    [uid] => P81312
                                    [trainid] => 9U35
                                    [rsid] => XR007400
                                    [sdd] => 2022-05-27
                                    [operator] => TFL Rail
                                    [operatorCode] => XR
                                    [std] => 2022-05-27T08:33:00
                                    [etd] => 2022-05-27T08:33:00
                                    [departureType] => Forecast
                                    [departureSource] => Darwin
                                    [platform] => A
                                    [platformIsHidden] => 1
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                            [tiploc] => PADTLL
                                                        )

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Abbey Wood
                                                            [crs] => ABW
                                                            [tiploc] => ABWDXR
                                                        )

                                                )

                                        )

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

                            [7] => stdClass Object
                                (
                                    [rid] => 202205278085939
                                    [uid] => P85939
                                    [trainid] => 9T62
                                    [sdd] => 2022-05-27
                                    [operator] => TFL Rail
                                    [operatorCode] => XR
                                    [std] => 2022-05-27T08:33:00
                                    [etd] => 2022-05-27T08:33:00
                                    [departureType] => Forecast
                                    [departureSource] => Darwin
                                    [platform] => 11
                                    [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          
                                )

                            [8] => stdClass Object
                                (
                                    [rid] => 202205278081314
                                    [uid] => P81314
                                    [trainid] => 9U36
                                    [rsid] => XR007600
                                    [sdd] => 2022-05-27
                                    [operator] => TFL Rail
                                    [operatorCode] => XR
                                    [std] => 2022-05-27T08:38:00
                                    [etd] => 2022-05-27T08:38:00
                                    [departureType] => Forecast
                                    [departureSource] => Darwin
                                    [platform] => A
                                    [platformIsHidden] => 1
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                            [tiploc] => PADTLL
                                                        )

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Abbey Wood
                                                            [crs] => ABW
                                                            [tiploc] => ABWDXR
                                                        )

                                                )

                                        )

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

                            [9] => stdClass Object
                                (
                                    [rid] => 202205278085749
                                    [uid] => P85749
                                    [trainid] => 9R64
                                    [sdd] => 2022-05-27
                                    [operator] => TFL Rail
                                    [operatorCode] => XR
                                    [std] => 2022-05-27T08:38:00
                                    [etd] => 2022-05-27T08:38:00
                                    [departureType] => Forecast
                                    [departureSource] => Darwin
                                    [platform] => 14
                                    [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          
                                )

                        )

                )

        )

)