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 across Gatwick Express, Southern and Thameslink networks will be subject to cancellations, delays and revisions. Latest information can be found in Status and Disruptions.
Time Destination Platform Expected
17:09 Portsmouth Harbour and Bognor Regis

CALLING AT:

Three Bridges (17:14)
Crawley (17:18)
Horsham (17:27)
Barnham (17:59)
Chichester (18:08)
Southbourne (18:16)
Emsworth (18:19)
Havant (18:24)
Hilsea (18:32)
Fratton (18:36)
Portsmouth & Southsea (18:40)
Portsmouth Harbour (18:44)

Train divides at Horsham

CALLING AT:

Christs Hospital (17:39)
Billingshurst (17:45)
Pulborough (17:52)
Amberley (17:58)
Arundel (18:02)
Ford (18:08)
Barnham (18:13)
Bognor Regis (18:21)

Southern (8 coaches)

6 On time
17:10 London Victoria

CALLING AT:

London Victoria (17:41)

Gatwick Express (8 coaches)

5 On time
17:11 Three Bridges

CALLING AT:

Three Bridges (17:16)

Thameslink (12 coaches)

3 On time
17:13 London Victoria

CALLING AT:

East Croydon (17:28)
Clapham Junction (17:37)
London Victoria (17:45)

Southern (8 coaches)

1 On time
17:15 Brighton   Cancelled
17:16 Cambridge   Cancelled
17:17 Horsham

CALLING AT:

Three Bridges (17:22)
Crawley (17:27)
Ifield (17:30)
Faygate (17:34)
Littlehaven (17:38)
Horsham (17:42)

Thameslink (12 coaches)

3 On time
17:19 Peterborough

CALLING AT:

Horley (17:21)
Redhill (17:29)
Merstham (17:33)
Coulsdon South (17:38)
East Croydon (17:45)
London Bridge (18:00)
London Blackfriars (18:06)
City Thameslink (18:08)
Farringdon (18:11)
London St Pancras (Intl) (18:15)
Finsbury Park (18:22)
Stevenage (18:43)
Hitchin (18:49)
Arlesey (18:55)
Biggleswade (19:00)
Sandy (19:05)
St Neots (19:12)
Huntingdon (19:19)
Peterborough (19:36)

Thameslink (12 coaches)

1 On time
17:22 Littlehampton

CALLING AT:

Three Bridges (17:25)
Haywards Heath (17:32)
Burgess Hill (17:39)
Hassocks (17:43)
Preston Park (17:51)
Hove (17:55)
Portslade (17:59)
Shoreham-by-Sea (18:04)
Lancing (18:08)
Worthing (18:13)
West Worthing (18:15)
Durrington-on-Sea (18:18)
Goring-by-Sea (18:21)
Angmering (18:26)
Littlehampton (18:36)

Southern (8 coaches)

6 17:25
17:23 Bedford

CALLING AT:

East Croydon (17:38)
London Bridge (17:54)
London Blackfriars (18:01)
City Thameslink (18:03)
Farringdon (18:06)
London St Pancras (Intl) (18:10)
St Albans (18:30)
Harpenden (18:36)
Luton Airport Parkway (18:41)
Luton (18:45)
Leagrave (18:49)
Harlington (18:54)
Flitwick (18:58)
Bedford (19:12)

Thameslink

5 On time