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-05T06:16:39.0328259+00:00
[locationName] => London Paddington
[crs] => PAD
[platformAvailable] => 1
[trainServices] => stdClass Object
(
[service] => Array
(
[0] => stdClass Object
(
[std] => 06:15
[etd] => On time
[platform] => B
[operator] => Elizabeth Line
[operatorCode] => XR
[serviceType] => train
[serviceID] => 5122838PADTLL__
[origin] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => Abbey Wood
[crs] => ABW
)
)
)
[destination] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => Reading
[crs] => RDG
)
)
)
)
[1] => stdClass Object
(
[std] => 06:16
[etd] => On time
[platform] => A
[operator] => Elizabeth Line
[operatorCode] => XR
[serviceType] => train
[serviceID] => 5123210PADTLL__
[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
)
)
)
)
[2] => stdClass Object
(
[std] => 06:19
[etd] => 06:21
[platform] => A
[operator] => Elizabeth Line
[operatorCode] => XR
[serviceType] => train
[serviceID] => 5122966PADTLL__
[origin] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => Heathrow Airport T5
[crs] => HWV
)
)
)
[destination] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => Abbey Wood
[crs] => ABW
)
)
)
)
[3] => stdClass Object
(
[std] => 06:23
[etd] => On time
[platform] => 11
[operator] => Great Western Railway
[operatorCode] => GW
[serviceType] => train
[serviceID] => 5121385PADTON__
[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
)
)
)
)
[4] => stdClass Object
(
[std] => 06:23
[etd] => On time
[platform] => A
[operator] => Elizabeth Line
[operatorCode] => XR
[serviceType] => train
[serviceID] => 5123216PADTLL__
[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] => 06:24
[etd] => On time
[platform] => B
[operator] => Elizabeth Line
[operatorCode] => XR
[serviceType] => train
[serviceID] => 5122723PADTLL__
[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
)
)
)
)
[6] => stdClass Object
(
[std] => 06:25
[etd] => On time
[platform] => 7
[operator] => Heathrow Express
[operatorCode] => HX
[serviceType] => train
[serviceID] => 5118011PADTON__
[rsid] => HX010000
[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
)
)
)
)
[7] => stdClass Object
(
[std] => 06:26
[etd] => On time
[platform] => A
[operator] => Elizabeth Line
[operatorCode] => XR
[serviceType] => train
[serviceID] => 5122970PADTLL__
[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
)
)
)
)
[8] => stdClass Object
(
[std] => 06:28
[etd] => On time
[platform] => 10
[operator] => Great Western Railway
[operatorCode] => GW
[serviceType] => train
[serviceID] => 5102748PADTON__
[rsid] => GW430500
[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
)
)
)
)
[9] => stdClass Object
(
[std] => 06:30
[etd] => On time
[platform] => A
[operator] => Elizabeth Line
[operatorCode] => XR
[serviceType] => train
[serviceID] => 5123224PADTLL__
[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
)
)
)
)
)
)
)
)