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

  • Major engineering work will be taking place in the Cambridge area. Latest information can be found in Status and Disruptions.
Time Destination Platform Expected
06:20 London Victoria

CALLING AT:

London Victoria (06:58)

Gatwick Express (4 coaches)

2 On time
06:28 London Victoria

CALLING AT:

Redhill (06:36)
East Croydon (06:48)
Clapham Junction (07:05)
London Victoria (07:15)

Southern (12 coaches)

2 On time
06:32 Bedford

CALLING AT:

Horley (06:34)
Salfords (06:39)
Earlswood (Surrey) (06:42)
Redhill (06:46)
Purley (06:56)
South Croydon (07:00)
East Croydon (07:03)
Norwood Junction (07:07)
London Bridge (07:20)
London Blackfriars (07:26)
Farringdon (07:31)
London St Pancras (Intl) (07:35)
St Albans (07:54)
Harpenden (08:01)
Luton Airport Parkway (08:06)
Luton (08:10)
Leagrave (08:15)
Harlington (08:20)
Flitwick (08:24)
Bedford (08:39)

Thameslink (12 coaches)

1 On time
06:33 Brighton

CALLING AT:

Three Bridges (06:37)
Haywards Heath (06:47)
Wivelsfield (06:52)
Burgess Hill (06:54)
Hassocks (06:58)
Preston Park (07:05)
Brighton (07:12)

Southern (8 coaches)

3 On time
06:50 London Victoria

CALLING AT:

London Victoria (07:27)

Gatwick Express (8 coaches)

2 On time
06:52 London Victoria

CALLING AT:

Horley (06:54)
Redhill (07:02)
Merstham (07:07)
Coulsdon South (07:12)
Purley (07:16)
East Croydon (07:22)
Clapham Junction (07:37)
London Victoria (07:46)

Southern (4 coaches)

1 On time
06:58 Reading

CALLING AT:

Redhill (07:07)
Reigate (07:16)
Betchworth (07:21)
Dorking Deepdene (07:26)
Dorking West (07:29)
Gomshall (07:37)
Chilworth (07:44)
Shalford (07:48)
Guildford (07:53)
Ash (08:07)
North Camp (08:12)
Farnborough North (08:16)
Blackwater (08:21)
Sandhurst (08:25)
Crowthorne (08:29)
Wokingham (08:34)
Reading (08:44)

Great Western Railway

3 On time
07:00 Bedford

CALLING AT:

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

Thameslink (12 coaches)

1 On time
07:05 Brighton

CALLING AT:

Three Bridges (07:09)
Balcombe (07:16)
Haywards Heath (07:21)
Wivelsfield (07:26)
Burgess Hill (07:28)
Hassocks (07:32)
Preston Park (07:38)
Brighton (07:43)

Thameslink (12 coaches)

7 On time
07:06 Bedford

CALLING AT:

East Croydon (07:21)
London Bridge (07:35)
London Blackfriars (07:41)
Farringdon (07:46)
London St Pancras (Intl) (07:50)
West Hampstead Thameslink (07:59)
St Albans (08:14)
Harpenden (08:20)
Luton Airport Parkway (08:25)
Luton (08:30)
Leagrave (08:36)
Harlington (08:41)
Flitwick (08:45)
Bedford (08:56)

Thameslink (12 coaches)

4 On time