↓ 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] => 2021-11-29T00:40:05.9675963+00:00
            [locationName] => London Paddington
            [crs] => PAD
            [stationManager] => Network Rail
            [stationManagerCode] => RT
            [trainServices] => stdClass Object
                (
                    [service] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [rid] => 202111297158375
                                    [uid] => G58375
                                    [trainid] => 2R97
                                    [rsid] => GW498000
                                    [sdd] => 2021-11-29
                                    [operator] => Great Western Railway
                                    [operatorCode] => GW
                                    [std] => 2021-11-29T01:34:00
                                    [etd] => 2021-11-29T01:34:00
                                    [departureType] => Forecast
                                    [departureSource] => Darwin
                                    [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          
                                )

                        )

                )

        )

)