↓ 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] => 2022-06-28T22:03:04.5707249+01:00
            [locationName] => London Paddington
            [crs] => PAD
            [platformAvailable] => 1
            [trainServices] => stdClass Object
                (
                    [service] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [std] => 22:02
                                    [etd] => On time
                                    [operator] => TFL Rail
                                    [operatorCode] => XR
                                    [serviceType] => train
                                    [serviceID] => 1uuH+w81CTXXiHCYSNLhaQ==
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                        )

                                                )

                                        )

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

                                                )

                                        )

                                )

                            [1] => stdClass Object
                                (
                                    [std] => 22:02
                                    [etd] => On time
                                    [operator] => Great Western Railway
                                    [operatorCode] => GW
                                    [serviceType] => train
                                    [serviceID] => tws4HbMzutPxRkHDXf0ZrA==
                                    [rsid] => GW437100
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                        )

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Plymouth
                                                            [crs] => PLY
                                                            [via] => via Bristol
                                                        )

                                                )

                                        )

                                )

                            [2] => stdClass Object
                                (
                                    [std] => 22:03
                                    [etd] => On time
                                    [operator] => TFL Rail
                                    [operatorCode] => XR
                                    [serviceType] => train
                                    [serviceID] => jwUdGMoJsplHdbUrobPz4w==
                                    [rsid] => XR001300
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                        )

                                                )

                                        )

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

                                                )

                                        )

                                )

                            [3] => stdClass Object
                                (
                                    [std] => 22:08
                                    [etd] => On time
                                    [operator] => TFL Rail
                                    [operatorCode] => XR
                                    [serviceType] => train
                                    [serviceID] => FktVkz6NykRDx38DqxDNbw==
                                    [rsid] => XR001500
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                        )

                                                )

                                        )

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

                                                )

                                        )

                                )

                            [4] => stdClass Object
                                (
                                    [std] => 22:10
                                    [etd] => On time
                                    [platform] => 6
                                    [operator] => Heathrow Express
                                    [operatorCode] => HX
                                    [serviceType] => train
                                    [serviceID] => Mj8+tb9HeJXNeRYFhr85JA==
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                        )

                                                )

                                        )

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

                                                )

                                        )

                                )

                            [5] => stdClass Object
                                (
                                    [std] => 22:12
                                    [etd] => On time
                                    [platform] => 12
                                    [operator] => TFL Rail
                                    [operatorCode] => XR
                                    [serviceType] => train
                                    [serviceID] => TXHTjt4un3QWRvtXw5JmGQ==
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                        )

                                                )

                                        )

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

                                                )

                                        )

                                )

                            [6] => stdClass Object
                                (
                                    [std] => 22:13
                                    [etd] => On time
                                    [operator] => TFL Rail
                                    [operatorCode] => XR
                                    [serviceType] => train
                                    [serviceID] => uKabO9rTqNiXOU6QEtZ1AA==
                                    [rsid] => XR001700
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                        )

                                                )

                                        )

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

                                                )

                                        )

                                )

                            [7] => stdClass Object
                                (
                                    [std] => 22:17
                                    [etd] => On time
                                    [operator] => TFL Rail
                                    [operatorCode] => XR
                                    [serviceType] => train
                                    [serviceID] => J+K6oAWlFOvatFUfio7vSg==
                                    [rsid] => XR319500
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                        )

                                                )

                                        )

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

                                                )

                                        )

                                )

                            [8] => stdClass Object
                                (
                                    [std] => 22:18
                                    [etd] => On time
                                    [operator] => TFL Rail
                                    [operatorCode] => XR
                                    [serviceType] => train
                                    [serviceID] => CooF25UdaLBpi3RwjjT3Tg==
                                    [rsid] => XR001900
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                        )

                                                )

                                        )

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

                                                )

                                        )

                                )

                            [9] => stdClass Object
                                (
                                    [std] => 22:20
                                    [etd] => On time
                                    [operator] => Great Western Railway
                                    [operatorCode] => GW
                                    [serviceType] => train
                                    [serviceID] => WIgie2cqI7GgN4Ue2woX7w==
                                    [rsid] => GW736900
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                        )

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Oxford
                                                            [crs] => OXF
                                                        )

                                                )

                                        )

                                    [formation] => stdClass Object
                                        (
                                            [coaches] => stdClass Object
                                                (
                                                    [coach] => Array
                                                        (
                                                            [0] => stdClass Object
                                                                (
                                                                    [coachClass] => First
                                                                    [toilet] => stdClass Object
                                                                        (
                                                                            [_] => Accessible
                                                                            [status] => InService
                                                                        )

                                                                    [number] => 1
                                                                )

                                                            [1] => stdClass Object
                                                                (
                                                                    [coachClass] => First
                                                                    [number] => 2
                                                                )

                                                            [2] => stdClass Object
                                                                (
                                                                    [coachClass] => Standard
                                                                    [toilet] => stdClass Object
                                                                        (
                                                                            [_] => Standard
                                                                            [status] => InService
                                                                        )

                                                                    [number] => 3
                                                                )

                                                            [3] => stdClass Object
                                                                (
                                                                    [coachClass] => Standard
                                                                    [toilet] => stdClass Object
                                                                        (
                                                                            [_] => Standard
                                                                            [status] => InService
                                                                        )

                                                                    [number] => 4
                                                                )

                                                            [4] => stdClass Object
                                                                (
                                                                    [coachClass] => Standard
                                                                    [toilet] => stdClass Object
                                                                        (
                                                                            [_] => Accessible
                                                                            [status] => InService
                                                                        )

                                                                    [number] => 5
                                                                )

                                                        )

                                                )

                                        )

                                )

                        )

                )

        )

)