↓ 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] => 2025-01-22T15:45:11.8181507+00:00
            [locationName] => London Paddington
            [crs] => PAD
            [stationManager] => Network Rail
            [stationManagerCode] => RT
            [isTruncated] => 1
            [trainServices] => stdClass Object
                (
                    [service] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [rid] => 202501228004113
                                    [uid] => P04113
                                    [trainid] => 9W14
                                    [sdd] => 2025-01-22
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [std] => 2025-01-22T15:45:00
                                    [etd] => 2025-01-22T15:45:00
                                    [departureType] => Forecast
                                    [departureSource] => Darwin
                                    [platform] => A
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                            [tiploc] => PADTLL
                                                        )

                                                )

                                        )

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

                                                )

                                        )

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

                            [1] => stdClass Object
                                (
                                    [rid] => 202501228003868
                                    [uid] => P03868
                                    [trainid] => 9R48
                                    [sdd] => 2025-01-22
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [sta] => 2025-01-22T15:47:00
                                    [eta] => 2025-01-22T15:47:00
                                    [arrivalType] => Forecast
                                    [std] => 2025-01-22T15:47:00
                                    [etd] => 2025-01-22T15:47:00
                                    [departureType] => Forecast
                                    [departureSource] => Darwin
                                    [platform] => B
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Abbey Wood
                                                            [crs] => ABW
                                                            [tiploc] => ABWDXR
                                                        )

                                                )

                                        )

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

                                                )

                                        )

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

                            [2] => stdClass Object
                                (
                                    [rid] => 202501228921977
                                    [uid] => Y21977
                                    [trainid] => 1B21
                                    [sdd] => 2025-01-22
                                    [operator] => Great Western Railway
                                    [operatorCode] => GW
                                    [std] => 2025-01-22T15:48:00
                                    [etd] => 2025-01-22T15:48:00
                                    [departureType] => Forecast
                                    [departureSource] => TD
                                    [platform] => 9
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                            [tiploc] => PADTON
                                                        )

                                                )

                                        )

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

                                                )

                                        )

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

                            [3] => stdClass Object
                                (
                                    [rid] => 202501228003955
                                    [uid] => P03955
                                    [trainid] => 9U15
                                    [sdd] => 2025-01-22
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [isCancelled] => 1
                                    [std] => 2025-01-22T15:49:00
                                    [platform] => A
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Heathrow Airport T4
                                                            [crs] => HAF
                                                            [tiploc] => HTRWTM4
                                                        )

                                                )

                                        )

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

                                                )

                                        )

                                    [currentDestinations] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                            [tiploc] => PADTON
                                                        )

                                                )

                                        )

                                    [cancelReason] => stdClass Object
                                        (
                                            [_] => 576
                                            [tiploc] => 
                                            [near] => 
                                        )

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

                            [4] => stdClass Object
                                (
                                    [rid] => 202501228922371
                                    [uid] => Y22371
                                    [trainid] => 1W31
                                    [rsid] => GW734300
                                    [sdd] => 2025-01-22
                                    [operator] => Great Western Railway
                                    [operatorCode] => GW
                                    [std] => 2025-01-22T15:52:00
                                    [etd] => 2025-01-22T15:52:00
                                    [departureType] => Forecast
                                    [departureSource] => TD
                                    [platform] => 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] => Great Malvern
                                                            [crs] => GMV
                                                            [tiploc] => GTMLVRN
                                                        )

                                                )

                                        )

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

                            [5] => stdClass Object
                                (
                                    [rid] => 202501228004120
                                    [uid] => P04120
                                    [trainid] => 9W18
                                    [sdd] => 2025-01-22
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [sta] => 2025-01-22T15:51:00
                                    [eta] => 2025-01-22T15:51:43
                                    [arrivalType] => Forecast
                                    [std] => 2025-01-22T15:52:00
                                    [etd] => 2025-01-22T15:52:43
                                    [departureType] => Forecast
                                    [departureSource] => Darwin
                                    [platform] => A
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Heathrow Airport T5
                                                            [crs] => HWV
                                                            [tiploc] => HTRWTM5
                                                        )

                                                )

                                        )

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

                                                )

                                        )

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

                            [6] => stdClass Object
                                (
                                    [rid] => 202501228003785
                                    [uid] => P03785
                                    [trainid] => 9H50
                                    [sdd] => 2025-01-22
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [sta] => 2025-01-22T15:54:00
                                    [eta] => 2025-01-22T15:54:00
                                    [arrivalType] => Forecast
                                    [std] => 2025-01-22T15:54:00
                                    [etd] => 2025-01-22T15:54:00
                                    [departureType] => Forecast
                                    [departureSource] => Darwin
                                    [platform] => B
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Abbey Wood
                                                            [crs] => ABW
                                                            [tiploc] => ABWDXR
                                                        )

                                                )

                                        )

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

                                                )

                                        )

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

                            [7] => stdClass Object
                                (
                                    [rid] => 202501226717934
                                    [uid] => C17934
                                    [trainid] => 1T67
                                    [sdd] => 2025-01-22
                                    [operator] => Heathrow Express
                                    [operatorCode] => HX
                                    [std] => 2025-01-22T15:55:00
                                    [etd] => 2025-01-22T15:55:00
                                    [departureType] => Forecast
                                    [departureSource] => TD
                                    [platform] => 7
                                    [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
                                )

                            [8] => stdClass Object
                                (
                                    [rid] => 202501228003962
                                    [uid] => P03962
                                    [trainid] => 9U19
                                    [sdd] => 2025-01-22
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [sta] => 2025-01-22T15:54:00
                                    [eta] => 2025-01-22T15:54:00
                                    [arrivalType] => Forecast
                                    [std] => 2025-01-22T15:56:00
                                    [etd] => 2025-01-22T15:56:00
                                    [departureType] => Forecast
                                    [departureSource] => Darwin
                                    [platform] => A
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Reading
                                                            [crs] => RDG
                                                            [tiploc] => RDNGSTN
                                                        )

                                                )

                                        )

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

                                                )

                                        )

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

                            [9] => stdClass Object
                                (
                                    [rid] => 202501228004127
                                    [uid] => P04127
                                    [trainid] => 9W22
                                    [sdd] => 2025-01-22
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [std] => 2025-01-22T16:00:00
                                    [etd] => 2025-01-22T16:00:00
                                    [departureType] => Forecast
                                    [departureSource] => Darwin
                                    [platform] => A
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                            [tiploc] => PADTLL
                                                        )

                                                )

                                        )

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

                                                )

                                        )

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

                        )

                )

        )

)