↓ 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] => 2021-10-16T23:13:11.5434155+01:00
            [locationName] => London Paddington
            [crs] => PAD
            [stationManager] => Network Rail
            [stationManagerCode] => RT
            [qos] => -1
            [trainServices] => stdClass Object
                (
                    [service] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [rid] => 202110166746800
                                    [uid] => C46800
                                    [trainid] => 9N48
                                    [sdd] => 2021-10-16
                                    [operator] => TFL Rail
                                    [operatorCode] => XR
                                    [std] => 2021-10-16T23:13:00
                                    [etd] => 2021-10-16T23:13:00
                                    [departureType] => Forecast
                                    [departureSource] => 
                                    [platform] => 12
                                    [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] => Maidenhead
                                                            [crs] => MAI
                                                            [tiploc] => MDNHEAD
                                                        )

                                                )

                                        )

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

                            [1] => stdClass Object
                                (
                                    [rid] => 202110166745242
                                    [uid] => C45242
                                    [trainid] => 9T49
                                    [sdd] => 2021-10-16
                                    [operator] => TFL Rail
                                    [operatorCode] => XR
                                    [std] => 2021-10-16T23:18:00
                                    [etd] => 2021-10-16T23:18:00
                                    [departureType] => Forecast
                                    [departureSource] => 
                                    [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          
                                )

                            [2] => stdClass Object
                                (
                                    [rid] => 202110167127263
                                    [uid] => G27263
                                    [trainid] => 1T97
                                    [sdd] => 2021-10-16
                                    [operator] => Heathrow Express
                                    [operatorCode] => HX
                                    [std] => 2021-10-16T23:25:00
                                    [etd] => 2021-10-16T23:25:00
                                    [departureType] => Forecast
                                    [departureSource] => 
                                    [platform] => 5
                                    [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          
                                )

                            [3] => stdClass Object
                                (
                                    [rid] => 202110167145284
                                    [uid] => G45284
                                    [trainid] => 2R82
                                    [sdd] => 2021-10-16
                                    [operator] => Great Western Railway
                                    [operatorCode] => GW
                                    [std] => 2021-10-16T23:28:00
                                    [etd] => 2021-10-16T23:28:00
                                    [departureType] => Forecast
                                    [departureSource] => 
                                    [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          
                                )

                            [4] => stdClass Object
                                (
                                    [rid] => 202110167144634
                                    [uid] => G44634
                                    [trainid] => 1U38
                                    [sdd] => 2021-10-16
                                    [operator] => Great Western Railway
                                    [operatorCode] => GW
                                    [std] => 2021-10-16T23:30:00
                                    [etd] => 2021-10-16T23:30:00
                                    [departureType] => Forecast
                                    [departureSource] => 
                                    [platform] => 4
                                    [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 Parkway
                                                            [crs] => BPW
                                                            [tiploc] => BRSTPWY
                                                        )

                                                )

                                        )

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

                            [5] => stdClass Object
                                (
                                    [rid] => 202110167144628
                                    [uid] => G44628
                                    [trainid] => 1R46
                                    [sdd] => 2021-10-16
                                    [operator] => Great Western Railway
                                    [operatorCode] => GW
                                    [std] => 2021-10-16T23:45:00
                                    [etd] => 2021-10-16T23:45:00
                                    [departureType] => Forecast
                                    [departureSource] => 
                                    [platform] => 9
                                    [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] => Reading
                                                            [crs] => RDG
                                                            [tiploc] => RDNGSTN
                                                        )

                                                )

                                        )

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

                            [6] => stdClass Object
                                (
                                    [rid] => 202110166746801
                                    [uid] => C46801
                                    [trainid] => 9N52
                                    [sdd] => 2021-10-16
                                    [operator] => TFL Rail
                                    [operatorCode] => XR
                                    [std] => 2021-10-16T23:58:00
                                    [etd] => 2021-10-16T23:58:00
                                    [departureType] => Forecast
                                    [departureSource] => 
                                    [platform] => 12
                                    [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] => Maidenhead
                                                            [crs] => MAI
                                                            [tiploc] => MDNHEAD
                                                        )

                                                )

                                        )

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

                        )

                )

        )

)