↓ 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] => 2024-04-19T15:04:35.8189445+01:00
            [locationName] => London Paddington
            [crs] => PAD
            [stationManager] => Network Rail
            [stationManagerCode] => RT
            [isTruncated] => 1
            [trainServices] => stdClass Object
                (
                    [service] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [rid] => 202404197665409
                                    [uid] => L65409
                                    [trainid] => 1C86
                                    [sdd] => 2024-04-19
                                    [operator] => Great Western Railway
                                    [operatorCode] => GW
                                    [std] => 2024-04-19T15:03:00
                                    [atd] => 2024-04-19T15:03:47
                                    [departureType] => Actual
                                    [departureSource] => TD
                                    [platform] => 10
                                    [platformIsHidden] => 1
                                    [serviceIsSupressed] => 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] => Penzance
                                                            [crs] => PNZ
                                                            [tiploc] => PENZNCE
                                                        )

                                                )

                                        )

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

                            [1] => stdClass Object
                                (
                                    [rid] => 202404197179837
                                    [uid] => G79837
                                    [trainid] => 9U01
                                    [rsid] => XR137900
                                    [sdd] => 2024-04-19
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [sta] => 2024-04-19T15:02:00
                                    [ata] => 2024-04-19T15:02:34
                                    [arrivalType] => Actual
                                    [std] => 2024-04-19T15:04:00
                                    [etd] => 2024-04-19T15:04:29
                                    [departureType] => Forecast
                                    [departureSource] => CIS
                                    [departureSourceInstance] => XRRC
                                    [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
                                                        )

                                                )

                                        )

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

                            [2] => stdClass Object
                                (
                                    [rid] => 202404197665525
                                    [uid] => L65525
                                    [trainid] => 1K18
                                    [sdd] => 2024-04-19
                                    [operator] => Great Western Railway
                                    [operatorCode] => GW
                                    [std] => 2024-04-19T15:05:00
                                    [etd] => 2024-04-19T15:05:00
                                    [departureType] => Forecast
                                    [departureSource] => TD
                                    [platform] => 2
                                    [platformIsHidden] => 1
                                    [serviceIsSupressed] => 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] => Newbury
                                                            [crs] => NBY
                                                            [tiploc] => NEWBURY
                                                        )

                                                )

                                        )

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

                            [3] => stdClass Object
                                (
                                    [rid] => 202404198008825
                                    [uid] => P08825
                                    [trainid] => 9T33
                                    [sdd] => 2024-04-19
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [sta] => 2024-04-19T15:05:00
                                    [ata] => 2024-04-19T15:04:00
                                    [arrivalType] => Actual
                                    [arrivalSource] => TRUST
                                    [arrivalSourceInstance] => Auto
                                    [std] => 2024-04-19T15:06:00
                                    [etd] => 2024-04-19T15:06:00
                                    [departureType] => Forecast
                                    [departureSource] => Darwin
                                    [platform] => B
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Shenfield
                                                            [crs] => SNF
                                                            [tiploc] => SHENFLD
                                                        )

                                                )

                                        )

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

                                                )

                                        )

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

                            [4] => stdClass Object
                                (
                                    [rid] => 202404197666645
                                    [uid] => L66645
                                    [trainid] => 2N42
                                    [sdd] => 2024-04-19
                                    [operator] => Great Western Railway
                                    [operatorCode] => GW
                                    [std] => 2024-04-19T15:07:00
                                    [etd] => 2024-04-19T15:07:00
                                    [departureType] => Forecast
                                    [departureSource] => TD
                                    [platform] => 5
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                            [tiploc] => PADTON
                                                        )

                                                )

                                        )

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

                                                )

                                        )

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

                            [5] => stdClass Object
                                (
                                    [rid] => 202404197179921
                                    [uid] => G79921
                                    [trainid] => 9W02
                                    [rsid] => XR146000
                                    [sdd] => 2024-04-19
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [std] => 2024-04-19T15:07:00
                                    [etd] => 2024-04-19T15:07: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
                                )

                            [6] => stdClass Object
                                (
                                    [rid] => 202404197179712
                                    [uid] => G79712
                                    [trainid] => 9H36
                                    [sdd] => 2024-04-19
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [sta] => 2024-04-19T15:08:00
                                    [eta] => 2024-04-19T15:08:17
                                    [arrivalType] => Forecast
                                    [std] => 2024-04-19T15:09:00
                                    [etd] => 2024-04-19T15:09:17
                                    [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] => 202404196739601
                                    [uid] => C39601
                                    [trainid] => 1T64
                                    [sdd] => 2024-04-19
                                    [operator] => Heathrow Express
                                    [operatorCode] => HX
                                    [std] => 2024-04-19T15:10:00
                                    [etd] => 2024-04-19T15:10:00
                                    [departureType] => Forecast
                                    [departureSource] => TD
                                    [platform] => 6
                                    [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] => 202404197179839
                                    [uid] => G79839
                                    [trainid] => 9U03
                                    [rsid] => XR138100
                                    [sdd] => 2024-04-19
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [sta] => 2024-04-19T15:09:00
                                    [eta] => 2024-04-19T15:09:19
                                    [arrivalType] => Forecast
                                    [std] => 2024-04-19T15:11:00
                                    [etd] => 2024-04-19T15:11:00
                                    [departureType] => Forecast
                                    [departureSource] => Darwin
                                    [platform] => A
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Maidenhead
                                                            [crs] => MAI
                                                            [tiploc] => MDNHEAD
                                                        )

                                                )

                                        )

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

                                                )

                                        )

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

                            [9] => stdClass Object
                                (
                                    [rid] => 202404197179926
                                    [uid] => G79926
                                    [trainid] => 9W04
                                    [rsid] => XR146200
                                    [sdd] => 2024-04-19
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [std] => 2024-04-19T15:15:00
                                    [etd] => 2024-04-19T15:15: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
                                )

                        )

                )

        )

)