↓ 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] => 2025-08-30T23:08:37.0457482+01:00
[locationName] => London Paddington
[crs] => PAD
[nrccMessages] => stdClass Object
(
[message] => Array
(
[0] => stdClass Object
(
[_] =>
Trains running between London Paddington and Whitechapel may be cancelled or delayed by up to 40 minutes. Latest information can be found in <a href="https://www.nationalrail.co.uk/service-disruptions/bond-street-20250830/">Status and Disruptions</a>.
)
)
)
[platformAvailable] => 1
[departures] => stdClass Object
(
[destination] => Array
(
[0] => stdClass Object
(
[service] => stdClass Object
(
[std] => 23:08
[etd] => On time
[operator] => Great Western Railway
[operatorCode] => GW
[serviceType] => train
[serviceID] => 135310PADTON__
[origin] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => London Paddington
[crs] => PAD
)
)
)
[destination] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => Didcot Parkway
[crs] => DID
)
)
)
)
[crs] => RDG
)
[1] => stdClass Object
(
[service] => stdClass Object
(
[std] => 23:30
[etd] => On time
[operator] => Great Western Railway
[operatorCode] => GW
[serviceType] => train
[serviceID] => 135064PADTON__
[origin] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => London Paddington
[crs] => PAD
)
)
)
[destination] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => Bristol Temple Meads
[crs] => BRI
)
)
)
)
[crs] => BRI
)
)
)
)
)