↓ Output (cached 60s)


<?php
  
require("OpenLDBWS.php");
  
$OpenLDBWS = new OpenLDBWS("YOUR_ACCESS_TOKEN");
  
$response $OpenLDBWS->GetDepartureBoard(10,"PAD");
  
header("Content-Type: text/plain");
  
print_r($response);
?>
stdClass Object
(
    [GetStationBoardResult] => stdClass Object
        (
            [generatedAt] => 2024-04-16T14:30:56.6849211+01:00
            [locationName] => London Paddington
            [crs] => PAD
            [platformAvailable] => 1
            [trainServices] => stdClass Object
                (
                    [service] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [std] => 14:30
                                    [etd] => On time
                                    [platform] => A
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [serviceType] => train
                                    [serviceID] => 1155464PADTLL__
                                    [rsid] => XR159000
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                        )

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Shenfield
                                                            [crs] => SNF
                                                        )

                                                )

                                        )

                                )

                            [1] => stdClass Object
                                (
                                    [std] => 14:30
                                    [etd] => On time
                                    [operator] => Great Western Railway
                                    [operatorCode] => GW
                                    [serviceType] => train
                                    [serviceID] => 1167500PADTON__
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                        )

                                                )

                                        )

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

                                                )

                                        )

                                )

                            [2] => stdClass Object
                                (
                                    [std] => 14:32
                                    [etd] => On time
                                    [operator] => Great Western Railway
                                    [operatorCode] => GW
                                    [serviceType] => train
                                    [serviceID] => 1167774PADTON__
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                        )

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Cheltenham Spa
                                                            [crs] => CNM
                                                        )

                                                )

                                        )

                                )

                            [3] => stdClass Object
                                (
                                    [std] => 14:32
                                    [etd] => On time
                                    [platform] => B
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [serviceType] => train
                                    [serviceID] => 1154527PADTLL__
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Abbey Wood
                                                            [crs] => ABW
                                                        )

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Maidenhead
                                                            [crs] => MAI
                                                        )

                                                )

                                        )

                                )

                            [4] => stdClass Object
                                (
                                    [std] => 14:34
                                    [etd] => 14:36
                                    [platform] => A
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [serviceType] => train
                                    [serviceID] => 1155046PADTLL__
                                    [rsid] => XR145200
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Heathrow Airport T4
                                                            [crs] => HAF
                                                        )

                                                )

                                        )

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

                                                )

                                        )

                                )

                            [5] => stdClass Object
                                (
                                    [std] => 14:36
                                    [etd] => 14:41
                                    [platform] => B
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [serviceType] => train
                                    [delayReason] => This train has been delayed by a late running freight train
                                    [serviceID] => 1171956PADTLL__
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Shenfield
                                                            [crs] => SNF
                                                        )

                                                )

                                        )

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

                                                )

                                        )

                                )

                            [6] => stdClass Object
                                (
                                    [std] => 14:36
                                    [etd] => On time
                                    [platform] => 9
                                    [operator] => Great Western Railway
                                    [operatorCode] => GW
                                    [serviceType] => train
                                    [serviceID] => 1167572PADTON__
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                        )

                                                )

                                        )

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

                                                )

                                        )

                                )

                            [7] => stdClass Object
                                (
                                    [std] => 14:37
                                    [etd] => 14:39
                                    [platform] => A
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [serviceType] => train
                                    [serviceID] => 1155473PADTLL__
                                    [rsid] => XR159200
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                        )

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Shenfield
                                                            [crs] => SNF
                                                        )

                                                )

                                        )

                                )

                            [8] => stdClass Object
                                (
                                    [std] => 14:38
                                    [etd] => On time
                                    [platform] => 8
                                    [operator] => Great Western Railway
                                    [operatorCode] => GW
                                    [serviceType] => train
                                    [serviceID] => 1169855PADTON__
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                        )

                                                )

                                        )

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

                                                )

                                        )

                                )

                            [9] => stdClass Object
                                (
                                    [std] => 14:39
                                    [etd] => On time
                                    [platform] => B
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [serviceType] => train
                                    [serviceID] => 1154688PADTLL__
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Abbey Wood
                                                            [crs] => ABW
                                                        )

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Heathrow Airport T4
                                                            [crs] => HAF
                                                        )

                                                )

                                        )

                                )

                        )

                )

        )

)