↓ 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] => 2021-10-16T21:29:23.461248+01:00
            [locationName] => London Paddington
            [crs] => PAD
            [platformAvailable] => 1
            [trainServices] => stdClass Object
                (
                    [service] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [std] => 21:32
                                    [etd] => On time
                                    [platform] => 11
                                    [operator] => TFL Rail
                                    [operatorCode] => XR
                                    [serviceType] => train
                                    [serviceID] => 6sg+tAu5zrY3TY/pkI0IgQ==
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                        )

                                                )

                                        )

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

                                                )

                                        )

                                )

                            [1] => stdClass Object
                                (
                                    [std] => 21:40
                                    [etd] => On time
                                    [platform] => 7
                                    [operator] => Heathrow Express
                                    [operatorCode] => HX
                                    [serviceType] => train
                                    [serviceID] => XXq3uxcO1IPd2nrEH9C6/Q==
                                    [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
                                                        )

                                                )

                                        )

                                )

                            [2] => stdClass Object
                                (
                                    [std] => 21:43
                                    [etd] => On time
                                    [platform] => 12
                                    [operator] => TFL Rail
                                    [operatorCode] => XR
                                    [serviceType] => train
                                    [serviceID] => Ke3S59cnEG1k5zZtLsmLrQ==
                                    [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
                                                        )

                                                )

                                        )

                                )

                            [3] => stdClass Object
                                (
                                    [std] => 21:48
                                    [etd] => On time
                                    [operator] => TFL Rail
                                    [operatorCode] => XR
                                    [serviceType] => train
                                    [serviceID] => XnaWDBY6Mm/oLOAKea58IQ==
                                    [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
                                                        )

                                                )

                                        )

                                )

                            [4] => stdClass Object
                                (
                                    [std] => 21:50
                                    [etd] => On time
                                    [operator] => Great Western Railway
                                    [operatorCode] => GW
                                    [serviceType] => train
                                    [serviceID] => F3AKN7Rlokc/lq5rOgbruQ==
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                        )

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Worcester Shrub Hill
                                                            [crs] => WOS
                                                        )

                                                )

                                        )

                                )

                            [5] => stdClass Object
                                (
                                    [std] => 21:55
                                    [etd] => On time
                                    [platform] => 6
                                    [operator] => Heathrow Express
                                    [operatorCode] => HX
                                    [serviceType] => train
                                    [serviceID] => 2YG/7zzLUE6RY7CYfyYLGA==
                                    [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
                                                        )

                                                )

                                        )

                                )

                            [6] => stdClass Object
                                (
                                    [std] => 21:57
                                    [etd] => On time
                                    [platform] => 14
                                    [operator] => Great Western Railway
                                    [operatorCode] => GW
                                    [serviceType] => train
                                    [serviceID] => JW6/B7IXO+Yh9gWwKZkDDw==
                                    [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
                                                        )

                                                )

                                        )

                                )

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

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Bristol Parkway
                                                            [crs] => BPW
                                                        )

                                                )

                                        )

                                )

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

                                                )

                                        )

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

                                                )

                                        )

                                )

                            [9] => stdClass Object
                                (
                                    [std] => 22:10
                                    [etd] => On time
                                    [operator] => Heathrow Express
                                    [operatorCode] => HX
                                    [serviceType] => train
                                    [serviceID] => OYNp18lBgYERwiq8yfX23A==
                                    [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
                                                        )

                                                )

                                        )

                                )

                        )

                )

        )

)