↓ Output (cached 60s)


<?php
  
require("OpenLDBWS.php");
  
$OpenLDBWS = new OpenLDBWS("YOUR_ACCESS_TOKEN");
  
$response $OpenLDBWS->GetFastestDepartures("PAD",array("RDG","BRI"));
  
header("Content-Type: text/plain");
  
print_r($response);
?>
stdClass Object
(
    [DeparturesBoard] => stdClass Object
        (
            [generatedAt] => 2021-10-16T23:05:51.6321861+01:00
            [locationName] => London Paddington
            [crs] => PAD
            [platformAvailable] => 1
            [departures] => stdClass Object
                (
                    [destination] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [service] => stdClass Object
                                        (
                                            [std] => 23:30
                                            [etd] => On time
                                            [operator] => Great Western Railway
                                            [operatorCode] => GW
                                            [serviceType] => train
                                            [serviceID] => /AA3xkqRFaM2w9+zpbZBaQ==
                                            [origin] => stdClass Object
                                                (
                                                    [location] => Array
                                                        (
                                                            [0] => stdClass Object
                                                                (
                                                                    [locationName] => London Paddington
                                                                    [crs] => PAD
                                                                )

                                                        )

                                                )

                                            [destination] => stdClass Object
                                                (
                                                    [location] => Array
                                                        (
                                                            [0] => stdClass Object
                                                                (
                                                                    [locationName] => Bristol Parkway
                                                                    [crs] => BPW
                                                                )

                                                        )

                                                )

                                        )

                                    [crs] => RDG
                                )

                            [1] => stdClass Object
                                (
                                    [service] => 
                                    [crs] => BRI
                                )

                        )

                )

        )

)