↓ 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-05-27T06:37:52.1469575+01:00
            [locationName] => London Paddington
            [crs] => PAD
            [platformAvailable] => 1
            [trainServices] => stdClass Object
                (
                    [service] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [std] => 06:37
                                    [etd] => On time
                                    [operator] => Great Western Railway
                                    [operatorCode] => GW
                                    [serviceType] => train
                                    [serviceID] => 9h4yCDsD1ESCaoSH7z/fgw==
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                        )

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Penzance
                                                            [crs] => PNZ
                                                        )

                                                )

                                        )

                                )

                            [1] => stdClass Object
                                (
                                    [std] => 06:38
                                    [etd] => On time
                                    [operator] => TFL Rail
                                    [operatorCode] => XR
                                    [serviceType] => train
                                    [serviceID] => un00c0R0/NWh2g0z+uYHdQ==
                                    [rsid] => XR002600
                                    [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
                                                        )

                                                )

                                        )

                                )

                            [2] => stdClass Object
                                (
                                    [std] => 06:40
                                    [etd] => On time
                                    [platform] => 6
                                    [operator] => Heathrow Express
                                    [operatorCode] => HX
                                    [serviceType] => train
                                    [serviceID] => STA9A9jTt19S636JhwsYvg==
                                    [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
                                                        )

                                                )

                                        )

                                )

                            [3] => stdClass Object
                                (
                                    [std] => 06:40
                                    [etd] => On time
                                    [platform] => 12
                                    [operator] => TFL Rail
                                    [operatorCode] => XR
                                    [serviceType] => train
                                    [serviceID] => 3qgc0k3P1OcgzCEErWZXTg==
                                    [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
                                                        )

                                                )

                                        )

                                )

                            [4] => stdClass Object
                                (
                                    [std] => 06:43
                                    [etd] => On time
                                    [operator] => TFL Rail
                                    [operatorCode] => XR
                                    [serviceType] => train
                                    [serviceID] => au1+sFONG347bEAeznAtPg==
                                    [rsid] => XR002800
                                    [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
                                                        )

                                                )

                                        )

                                )

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

                                                )

                                        )

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

                                                )

                                        )

                                )

                            [6] => stdClass Object
                                (
                                    [std] => 06:48
                                    [etd] => On time
                                    [operator] => TFL Rail
                                    [operatorCode] => XR
                                    [serviceType] => train
                                    [serviceID] => CKaUcu28RRkYYiHXtN+/kw==
                                    [rsid] => XR003100
                                    [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] => 06:48
                                    [etd] => On time
                                    [platform] => 8
                                    [operator] => Great Western Railway
                                    [operatorCode] => GW
                                    [serviceType] => train
                                    [serviceID] => MqOl+g/ekHhn+OP7otqOfQ==
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                        )

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Swansea
                                                            [crs] => SWA
                                                        )

                                                )

                                        )

                                )

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

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Great Malvern
                                                            [crs] => GMV
                                                        )

                                                )

                                        )

                                    [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
                                                                )

                                                        )

                                                )

                                        )

                                )

                            [9] => stdClass Object
                                (
                                    [std] => 06:53
                                    [etd] => On time
                                    [operator] => TFL Rail
                                    [operatorCode] => XR
                                    [serviceType] => train
                                    [serviceID] => eqYPUDMdAaTK7h0Fv5wu3g==
                                    [rsid] => XR003300
                                    [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
                                                        )

                                                )

                                        )

                                )

                        )

                )

        )

)