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

↓ Output (cached 60s)


<!DOCTYPE html>
<html lang="en">
  <head>
    <style type='text/css'>
      body {
        font-family: monospace;
        white-space: nowrap;
      }
      table {
        border-collapse: collapse;
      }
      th,td {
        border: 1px solid #eee;
        padding: 10px;
        vertical-align:top;
      }
      th:nth-child(1),th:nth-child(2) {
        text-align: left;
      }
      th:nth-child(3),td:nth-child(3) {
        text-align: center;
      }
      th:nth-child(4),td:nth-child(4) {
        text-align: right;
      }
    </style>
  </head>
  <body>
    <?php
      
require("OpenLDBWS.php");
      
$OpenLDBWS = new OpenLDBWS("YOUR_ACCESS_TOKEN");
      
$response $OpenLDBWS->GetDepBoardWithDetails(10,"GTW");
      
$template["header"] = "
        <table>
          <thead>
            <tr>
              <th>Time</th>
              <th>Destination</th>
              <th>Platform</th>
              <th>Expected</th>
            </tr>
          </thead>
          <tbody>
        "
;
      
$template["row"] = "
            <tr>
              <td>{std}</td>
              <td><strong>{destination}</strong>{detail}</td>
              <td>{platform}</td>
              <td>{etd}</td>
            </tr>
      "
;
      
$template["footer"] = "
          </tbody>
        </table>
      "
;

      if (isset(
$response->GetStationBoardResult))
      {
        print 
"<p><strong>".$response->GetStationBoardResult->locationName."</strong> Departures</p>";

        if (isset(
$response->GetStationBoardResult->nrccMessages))
        {
          print 
"<ul>";

          foreach(
$response->GetStationBoardResult->nrccMessages->message as $message)
          {
            print 
"<li>".$message->{"_"}."</li>";
          }

          print 
"</ul>";
        }

        if (isset(
$response->GetStationBoardResult->trainServices->service))
        {
          print 
$template["header"];

          foreach(
$response->GetStationBoardResult->trainServices->service as $service)
          {
            
$row $template["row"];

            
$destinations = array();

            foreach(
$service->destination->location as $location)
            {
              
$destinations[] = $location->locationName;
            }

            
$row str_replace("{std}",$service->std,$row);

            
$row str_replace("{destination}",implode(" and ",$destinations),$row);

            
$row str_replace("{platform}",(isset($service->platform)?$service->platform:"&nbsp;"),$row);

            
$row str_replace("{etd}",$service->etd,$row);

            
$detail "";

            if ((
$service->etd != "Cancelled") && isset($service->subsequentCallingPoints))
            {
              foreach(
$service->subsequentCallingPoints->callingPointList as $k => $callingPointList)
              {
                
$callingPoints $callingPointList->callingPoint;

                if (
$k)
                {
                  
$callingPoint array_shift($callingPoints);

                  
$detail .= "<p>Train divides at <strong>".$callingPoint->locationName."</strong></p>";
                }

                
$detail .= "<p>CALLING AT:</p>";

                foreach(
$callingPoints as $callingPoint)
                {
                  
$detail .= $callingPoint->locationName." (".(($callingPoint->st == "On time")?$callingPoint->et:$callingPoint->st).")<br />";
                }
              }

              
$detail .= "<p>".$service->operator.(isset($service->length)?" (".$service->length." coaches)":"")."</p>";
            }

            
$row str_replace("{detail}",$detail,$row);

            print 
$row;
          }

          print 
$template["footer"];
        }
        else
        {
          print 
"<p>No services within 2 hours.</p>";
        }
      }
    
?>
  </body>
</html>

Gatwick Airport Departures

  • Trains running between Reading and Wokingham may be cancelled, delayed by up to 20 minutes or revised. Latest information can be found in Status and Disruptions.
  • Trains running between Barnham and Worthing may be cancelled or revised. More details can be found in Status and Disruptions.
Time Destination Platform Expected
15:42 London Victoria

CALLING AT:

London Victoria (16:14)

Gatwick Express (8 coaches)

5 On time
15:43 London Victoria

CALLING AT:

Redhill (15:52)
East Croydon (16:04)
Clapham Junction (16:15)
London Victoria (16:22)

Southern (12 coaches)

1 15:48
15:44 Horsham

CALLING AT:

Three Bridges (15:49)
Crawley (15:53)
Ifield (15:56)
Littlehaven (16:02)
Horsham (16:06)

Thameslink (8 coaches)

3 On time
15:45 London Victoria

CALLING AT:

East Croydon (15:59)
Clapham Junction (16:12)
London Victoria (16:19)

Southern (8 coaches)

4 On time
15:49 Three Bridges

CALLING AT:

Three Bridges (15:53)

Southern (8 coaches)

6 On time
15:53 Cambridge

CALLING AT:

East Croydon (16:07)
London Bridge (16:23)
London Blackfriars (16:30)
Farringdon (16:35)
London St Pancras (Intl) (16:39)
Finsbury Park (16:46)
Stevenage (17:09)
Hitchin (17:15)
Letchworth Garden City (17:21)
Baldock (17:24)
Ashwell & Morden (17:29)
Royston (17:33)
Cambridge (17:50)

Thameslink (12 coaches)

2 On time
15:55 Reading

CALLING AT:

Redhill (16:03)
Reigate (16:11)
Dorking Deepdene (16:18)
Gomshall (16:27)
Chilworth (16:34)
Shalford (16:37)
Guildford (16:43)
North Camp (16:59)
Blackwater (17:05)
Wokingham (17:14)
Reading (17:23)

Great Western Railway

1 On time
16:00 Bedford

CALLING AT:

Horley (16:03)
Salfords (16:07)
Earlswood (Surrey) (16:10)
Redhill (16:14)
Merstham (16:19)
Coulsdon South (16:24)
Purley (16:27)
East Croydon (16:33)
Norwood Junction (16:37)
London Bridge (16:50)
London Blackfriars (16:56)
Farringdon (17:01)
London St Pancras (Intl) (17:05)
West Hampstead Thameslink (17:14)
St Albans (17:27)
Harpenden (17:33)
Luton Airport Parkway (17:39)
Luton (17:43)
Leagrave (17:47)
Harlington (17:52)
Flitwick (17:56)
Bedford (18:10)

Thameslink (12 coaches)

1 On time
16:04 Three Bridges

CALLING AT:

Three Bridges (16:08)

Southern (10 coaches)

6 On time
16:06 Bedford

CALLING AT:

East Croydon (16:21)
London Bridge (16:35)
London Blackfriars (16:41)
Farringdon (16:46)
London St Pancras (Intl) (16:50)
West Hampstead Thameslink (16:59)
St Albans (17:10)
Harpenden (17:17)
Luton Airport Parkway (17:23)
Luton (17:27)
Leagrave (17:31)
Harlington (17:36)
Flitwick (17:40)
Bedford (17:54)

Thameslink (12 coaches)

4 On time