Please note: Rail Delivery Group plans to retire the National Rail Data Portal (including OpenLDBWS) in early 2026. Alternatives are now available via the Rail Data Marketplace
<?php
require("OpenLDBWS.php");
$OpenLDBWS = new OpenLDBWS("YOUR_ACCESS_TOKEN");
$response = $OpenLDBWS->GetDepartureBoard(10,"PAD");
header("Content-Type: text/plain");
print_r($response);
?>
stdClass Object
(
[GetStationBoardResult] => stdClass Object
(
[generatedAt] => 2026-02-06T20:33:45.8212817+00:00
[locationName] => London Paddington
[crs] => PAD
[platformAvailable] => 1
[trainServices] => stdClass Object
(
[service] => Array
(
[0] => stdClass Object
(
[std] => 20:32
[etd] => On time
[platform] => B
[operator] => Elizabeth Line
[operatorCode] => XR
[serviceType] => train
[serviceID] => 26228PADTLL__
[origin] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => Abbey Wood
[crs] => ABW
)
)
)
[destination] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => Maidenhead
[crs] => MAI
)
)
)
)
[1] => stdClass Object
(
[std] => 20:34
[etd] => On time
[platform] => A
[operator] => Elizabeth Line
[operatorCode] => XR
[serviceType] => train
[serviceID] => 26440PADTLL__
[origin] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => Heathrow Airport T4
[crs] => HAF
)
)
)
[destination] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => Abbey Wood
[crs] => ABW
)
)
)
)
[2] => stdClass Object
(
[std] => 20:34
[etd] => On time
[operator] => Great Western Railway
[operatorCode] => GW
[serviceType] => train
[serviceID] => 3552PADTON__
[rsid] => GW333100
[origin] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => London Paddington
[crs] => PAD
)
)
)
[destination] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => Cheltenham Spa
[crs] => CNM
)
)
)
)
[3] => stdClass Object
(
[std] => 20:36
[etd] => On time
[platform] => B
[operator] => Elizabeth Line
[operatorCode] => XR
[serviceType] => train
[serviceID] => 26319PADTLL__
[origin] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => Shenfield
[crs] => SNF
)
)
)
[destination] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => Heathrow Airport T5
[crs] => HWV
)
)
)
)
[4] => stdClass Object
(
[std] => 20:37
[etd] => On time
[platform] => A
[operator] => Elizabeth Line
[operatorCode] => XR
[serviceType] => train
[serviceID] => 26692PADTLL__
[origin] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => London Paddington
[crs] => PAD
)
)
)
[destination] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => Shenfield
[crs] => SNF
)
)
)
)
[5] => stdClass Object
(
[std] => 20:38
[etd] => On time
[platform] => 12
[operator] => Great Western Railway
[operatorCode] => GW
[serviceType] => train
[serviceID] => 24862PADTON__
[rsid] => GW495100
[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
)
)
)
)
[6] => stdClass Object
(
[std] => 20:39
[etd] => On time
[platform] => B
[operator] => Elizabeth Line
[operatorCode] => XR
[serviceType] => train
[serviceID] => 26163PADTLL__
[origin] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => Abbey Wood
[crs] => ABW
)
)
)
[destination] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => Heathrow Airport T4
[crs] => HAF
)
)
)
)
[7] => stdClass Object
(
[std] => 20:40
[etd] => On time
[platform] => 7
[operator] => Heathrow Express
[operatorCode] => HX
[serviceType] => train
[serviceID] => 21904PADTON__
[origin] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => London Paddington
[crs] => PAD
)
)
)
[destination] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => Heathrow Airport T5
[crs] => HWV
)
)
)
)
[8] => stdClass Object
(
[std] => 20:41
[etd] => On time
[platform] => A
[operator] => Elizabeth Line
[operatorCode] => XR
[serviceType] => train
[serviceID] => 26446PADTLL__
[origin] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => Maidenhead
[crs] => MAI
)
)
)
[destination] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => Abbey Wood
[crs] => ABW
)
)
)
)
[9] => stdClass Object
(
[std] => 20:45
[etd] => On time
[platform] => A
[operator] => Elizabeth Line
[operatorCode] => XR
[serviceType] => train
[serviceID] => 26697PADTLL__
[origin] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => London Paddington
[crs] => PAD
)
)
)
[destination] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => Shenfield
[crs] => SNF
)
)
)
)
)
)
)
)