<?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] => 2025-12-02T20:21:59.2312971+00:00
[locationName] => London Paddington
[crs] => PAD
[nrccMessages] => stdClass Object
(
[message] => Array
(
[0] => stdClass Object
(
[_] => Trains between Hayes & Harlington and Slough may be cancelled, delayed by up to 20 minutes or revised. More details can be found in <a href="https://www.nationalrail.co.uk/service-disruptions/langley-20251202/">Status and Disruptions.</a>
)
)
)
[platformAvailable] => 1
[departures] => stdClass Object
(
[destination] => Array
(
[0] => stdClass Object
(
[service] => stdClass Object
(
[std] => 20:23
[etd] => On time
[operator] => Great Western Railway
[operatorCode] => GW
[serviceType] => train
[serviceID] => 3124845PADTON__
[origin] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => London Paddington
[crs] => PAD
)
)
)
[destination] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => Oxford
[crs] => OXF
)
)
)
)
[crs] => RDG
)
[1] => stdClass Object
(
[service] => stdClass Object
(
[std] => 20:30
[etd] => On time
[platform] => 11
[operator] => Great Western Railway
[operatorCode] => GW
[serviceType] => train
[serviceID] => 3127591PADTON__
[origin] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => London Paddington
[crs] => PAD
)
)
)
[destination] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => Weston-super-Mare
[crs] => WSM
)
)
)
)
[crs] => BRI
)
)
)
)
)