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

  • Gatwick Express, Southern, and Thameslink trains may be cancelled, delayed or revised. Latest information can be found in Status and Disruptions.
  • No trains to / from Eastbourne. Latest information can be found in Status and Disruptions.
Time Destination Platform Expected
18:35 Brighton

CALLING AT:

Three Bridges (18:39)
Haywards Heath (18:49)
Burgess Hill (18:54)
Hassocks (18:58)
Brighton (19:07)

Southern (12 coaches)

6 On time
18:42 London Victoria

CALLING AT:

London Victoria (19:12)

Gatwick Express (8 coaches)

5 On time
18:43 London Victoria

CALLING AT:

Redhill (18:52)
East Croydon (19:05)
Clapham Junction (19:14)
London Victoria (19:21)

Southern (12 coaches)

1 On time
18:45 London Victoria

CALLING AT:

East Croydon (18:59)
Clapham Junction (19:09)
London Victoria (19:16)

Southern (12 coaches)

4 On time
18:46 Brighton

CALLING AT:

Three Bridges (18:50)
Balcombe (18:57)
Haywards Heath (19:02)
Wivelsfield (19:06)
Burgess Hill (19:08)
Hassocks (19:12)
Preston Park (19:18)
Brighton (19:23)

Thameslink (12 coaches)

7 On time
18:48 Cambridge

CALLING AT:

East Croydon (19:03)
London Blackfriars (19:30)
Farringdon (19:35)
London St Pancras (Intl) (19:40)
Finsbury Park (19:47)
Stevenage (20:08)
Hitchin (20:15)
Letchworth Garden City (20:21)
Baldock (20:24)
Ashwell & Morden (20:29)
Royston (20:33)
Cambridge (20:50)

Thameslink (12 coaches)

4 On time
18:48 Horsham   Cancelled
18:52 Littlehampton

CALLING AT:

Haywards Heath (19:04)
Burgess Hill (19:13)
Hassocks (19:17)
Preston Park (19:24)
Hove (19:28)
Portslade (19:31)
Shoreham-by-Sea (19:36)
Lancing (19:40)
Worthing (19:44)
West Worthing (19:47)
Durrington-on-Sea (19:49)
Goring-by-Sea (19:52)
Angmering (19:56)
Littlehampton (20:06)

Southern (8 coaches)

6 On time
18:55 Reading

CALLING AT:

Redhill (19:03)
Reigate (19:11)
Betchworth (19:16)
Dorking Deepdene (19:20)
Dorking West (19:24)
Shalford (19:37)
Guildford (19:44)
North Camp (19:59)
Blackwater (20:05)
Wokingham (20:14)
Reading (20:23)

Great Western Railway

1 On time
18:58 Bedford

CALLING AT:

East Croydon (19:14)
London Blackfriars (19:42)
Farringdon (19:47)
London St Pancras (Intl) (19:51)
West Hampstead Thameslink (20:00)
St Albans (20:11)
Harpenden (20:18)
Luton Airport Parkway (20:24)
Luton (20:28)
Leagrave (20:32)
Harlington (20:37)
Flitwick (20:41)
Bedford (20:55)

Thameslink (12 coaches)

4 On time