↓ 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-06-28T23:39:17.8315731+01:00
            [locationName] => London Paddington
            [crs] => PAD
            [stationManager] => Network Rail
            [stationManagerCode] => RT
            [trainServices] => stdClass Object
                (
                    [service] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [rid] => 202206288085307
                                    [uid] => P85307
                                    [trainid] => 9N00
                                    [sdd] => 2022-06-28
                                    [operator] => TFL Rail
                                    [operatorCode] => XR
                                    [std] => 2022-06-28T23:39:00
                                    [etd] => 2022-06-28T23:39:00
                                    [departureType] => Forecast
                                    [departureSource] => Darwin
                                    [platform] => 11
                                    [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] => Maidenhead
                                                            [crs] => MAI
                                                            [tiploc] => MDNHEAD
                                                        )

                                                )

                                        )

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

                            [1] => stdClass Object
                                (
                                    [rid] => 202206288743487
                                    [uid] => W43487
                                    [trainid] => 1C50
                                    [rsid] => GW111600
                                    [sdd] => 2022-06-28
                                    [operator] => Great Western Railway
                                    [operatorCode] => GW
                                    [std] => 2022-06-28T23:45:00
                                    [etd] => 2022-06-28T23:45:00
                                    [departureType] => Forecast
                                    [departureSource] => Darwin
                                    [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] => Penzance
                                                            [crs] => PNZ
                                                            [tiploc] => PENZNCE
                                                        )

                                                )

                                        )

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

                            [2] => stdClass Object
                                (
                                    [rid] => 202206288744996
                                    [uid] => W44996
                                    [trainid] => 2R78
                                    [sdd] => 2022-06-28
                                    [operator] => Great Western Railway
                                    [operatorCode] => GW
                                    [std] => 2022-06-28T23:50:00
                                    [etd] => 2022-06-28T23:50:00
                                    [departureType] => Forecast
                                    [departureSource] => TD
                                    [platform] => 14
                                    [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          
                                )

                            [3] => stdClass Object
                                (
                                    [rid] => 202206298743542
                                    [uid] => W43542
                                    [trainid] => 1D48
                                    [rsid] => GW737500
                                    [sdd] => 2022-06-29
                                    [operator] => Great Western Railway
                                    [operatorCode] => GW
                                    [std] => 2022-06-29T00:32:00
                                    [etd] => 2022-06-29T00:32:00
                                    [departureType] => Forecast
                                    [departureSource] => Darwin
                                    [platform] => 10
                                    [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] => Oxford
                                                            [crs] => OXF
                                                            [tiploc] => OXFD
                                                        )

                                                )

                                        )

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

                            [4] => stdClass Object
                                (
                                    [rid] => 202206298744998
                                    [uid] => W44998
                                    [trainid] => 2R80
                                    [sdd] => 2022-06-29
                                    [operator] => Great Western Railway
                                    [operatorCode] => GW
                                    [std] => 2022-06-29T00:34:00
                                    [etd] => 2022-06-29T00:34:00
                                    [departureType] => Forecast
                                    [departureSource] => Darwin
                                    [platform] => 9
                                    [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] => Reading
                                                            [crs] => RDG
                                                            [tiploc] => RDNGSTN
                                                        )

                                                )

                                        )

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

                        )

                )

        )

)