↓ 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-01-22T15:49:12.4435489+00:00
[locationName] => London Paddington
[crs] => PAD
[platformAvailable] => 1
[departures] => stdClass Object
(
[destination] => Array
(
[0] => stdClass Object
(
[service] => stdClass Object
(
[std] => 15:48
[etd] => On time
[operator] => Great Western Railway
[operatorCode] => GW
[serviceType] => train
[serviceID] => 3390903PADTON__
[origin] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => London Paddington
[crs] => PAD
)
)
)
[destination] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => Swansea
[crs] => SWA
)
)
)
)
[crs] => RDG
)
[1] => stdClass Object
(
[service] => stdClass Object
(
[std] => 16:00
[etd] => On time
[platform] => 3
[operator] => Great Western Railway
[operatorCode] => GW
[serviceType] => train
[serviceID] => 3390978PADTON__
[rsid] => GW434300
[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
)
)
)
)
)