↓ 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] => 2022-08-15T15:03:17.4930819+01:00
            [locationName] => London Paddington
            [crs] => PAD
            [stationManager] => Network Rail
            [stationManagerCode] => RT
            [isTruncated] => 1
            [trainServices] => stdClass Object
                (
                    [service] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [rid] => 202208158743459
                                    [uid] => W43459
                                    [trainid] => 1C19
                                    [sdd] => 2022-08-15
                                    [operator] => Great Western Railway
                                    [operatorCode] => GW
                                    [std] => 2022-08-15T15:02:00
                                    [etd] => 2022-08-15T15:03:01
                                    [departureType] => Forecast
                                    [departureSource] => Darwin
                                    [platform] => 8
                                    [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] => Bristol Temple Meads
                                                            [crs] => BRI
                                                            [tiploc] => BRSTLTM
                                                        )

                                                )

                                        )

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

                            [1] => stdClass Object
                                (
                                    [rid] => 202208158081268
                                    [uid] => P81268
                                    [trainid] => 9U17
                                    [rsid] => XR003900
                                    [sdd] => 2022-08-15
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [std] => 2022-08-15T15:03:00
                                    [etd] => 2022-08-15T15:03:09
                                    [departureType] => Forecast
                                    [departureSource] => CIS
                                    [departureSourceInstance] => XRRC
                                    [platform] => A
                                    [platformIsHidden] => 1
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                            [tiploc] => PADTLL
                                                        )

                                                )

                                        )

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

                                                )

                                        )

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

                            [2] => stdClass Object
                                (
                                    [rid] => 202208158743510
                                    [uid] => W43510
                                    [trainid] => 1C86
                                    [sdd] => 2022-08-15
                                    [operator] => Great Western Railway
                                    [operatorCode] => GW
                                    [std] => 2022-08-15T15:04:00
                                    [etd] => 2022-08-15T15:04:00
                                    [departureType] => Forecast
                                    [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          
                                )

                            [3] => stdClass Object
                                (
                                    [rid] => 202208158743665
                                    [uid] => W43665
                                    [trainid] => 1K18
                                    [rsid] => GW231700
                                    [sdd] => 2022-08-15
                                    [operator] => Great Western Railway
                                    [operatorCode] => GW
                                    [std] => 2022-08-15T15:07:00
                                    [etd] => 2022-08-15T15:07:00
                                    [departureType] => Forecast
                                    [departureSource] => TD
                                    [platform] => 3
                                    [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          
                                )

                            [4] => stdClass Object
                                (
                                    [rid] => 202208158081271
                                    [uid] => P81271
                                    [trainid] => 9U18
                                    [rsid] => XR004100
                                    [sdd] => 2022-08-15
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [std] => 2022-08-15T15:08:00
                                    [etd] => 2022-08-15T15:08:00
                                    [departureType] => Forecast
                                    [departureSource] => Darwin
                                    [platform] => A
                                    [platformIsHidden] => 1
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                            [tiploc] => PADTLL
                                                        )

                                                )

                                        )

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

                                                )

                                        )

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

                            [5] => stdClass Object
                                (
                                    [rid] => 202208157154242
                                    [uid] => G54242
                                    [trainid] => 1T64
                                    [sdd] => 2022-08-15
                                    [operator] => Heathrow Express
                                    [operatorCode] => HX
                                    [std] => 2022-08-15T15:10:00
                                    [etd] => 2022-08-15T15: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          
                                )

                            [6] => stdClass Object
                                (
                                    [rid] => 202208158085691
                                    [uid] => P85691
                                    [trainid] => 9R18
                                    [rsid] => XR309500
                                    [sdd] => 2022-08-15
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [std] => 2022-08-15T15:11:00
                                    [etd] => 2022-08-15T15:11:00
                                    [departureType] => Forecast
                                    [departureSource] => TD
                                    [platform] => 12
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                            [tiploc] => PADTON
                                                        )

                                                )

                                        )

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

                                                )

                                        )

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

                            [7] => stdClass Object
                                (
                                    [rid] => 202208158081274
                                    [uid] => P81274
                                    [trainid] => 9U19
                                    [rsid] => XR004300
                                    [sdd] => 2022-08-15
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [std] => 2022-08-15T15:13:00
                                    [etd] => 2022-08-15T15:13:00
                                    [departureType] => Forecast
                                    [departureSource] => Darwin
                                    [platform] => A
                                    [platformIsHidden] => 1
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                            [tiploc] => PADTLL
                                                        )

                                                )

                                        )

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

                                                )

                                        )

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

                            [8] => stdClass Object
                                (
                                    [rid] => 202208158085845
                                    [uid] => P85845
                                    [trainid] => 9T20
                                    [rsid] => XR315400
                                    [sdd] => 2022-08-15
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [std] => 2022-08-15T15:17:00
                                    [etd] => 2022-08-15T15:17:00
                                    [departureType] => Forecast
                                    [departureSource] => Darwin
                                    [platform] => 11
                                    [platformIsHidden] => 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] => Heathrow Airport T4
                                                            [crs] => HAF
                                                            [tiploc] => HTRWTM4
                                                        )

                                                )

                                        )

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

                            [9] => stdClass Object
                                (
                                    [rid] => 202208158081277
                                    [uid] => P81277
                                    [trainid] => 9U20
                                    [rsid] => XR004500
                                    [sdd] => 2022-08-15
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [std] => 2022-08-15T15:18:00
                                    [etd] => 2022-08-15T15:18:00
                                    [departureType] => Forecast
                                    [departureSource] => Darwin
                                    [platform] => A
                                    [platformIsHidden] => 1
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                            [tiploc] => PADTLL
                                                        )

                                                )

                                        )

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

                                                )

                                        )

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

                        )

                )

        )

)