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

  • The lifts are currently out of order between platforms 3 and 4 and the footbridge and main concourse at Gatwick Airport station.
Time Destination Platform Expected
21:49 Horsham

CALLING AT:

Three Bridges (21:54)
Crawley (21:59)
Ifield (22:02)
Littlehaven (22:08)
Horsham (22:12)

Thameslink (12 coaches)

3 On time
21:49 Peterborough

CALLING AT:

Horley (21:51)
Salfords (21:55)
Earlswood (Surrey) (21:59)
Redhill (22:03)
East Croydon (22:15)
London Bridge (22:30)
London Blackfriars (22:36)
City Thameslink (22:38)
Farringdon (22:41)
London St Pancras (Intl) (22:45)
Finsbury Park (22:52)
Stevenage (23:13)
Hitchin (23:20)
Arlesey (23:26)
Biggleswade (23:31)
Sandy (23:35)
St Neots (23:42)
Huntingdon (23:49)
Peterborough (00:08)

Thameslink (12 coaches)

1 On time
21:50 Littlehampton

CALLING AT:

Three Bridges (21:54)
Haywards Heath (22:03)
Burgess Hill (22:09)
Hassocks (22:13)
Preston Park (22:20)
Hove (22:23)
Portslade (22:27)
Shoreham-by-Sea (22:31)
Lancing (22:36)
Worthing (22:40)
West Worthing (22:42)
Durrington-on-Sea (22:45)
Goring-by-Sea (22:48)
Angmering (22:52)
Littlehampton (23:04)

Southern (8 coaches)

6 On time
21:56 Eastbourne

CALLING AT:

Haywards Heath (22:07)
Wivelsfield (22:12)
Cooksbridge (22:21)
Lewes (22:26)
Polegate (22:39)
Hampden Park (22:47)
Eastbourne (22:53)

Southern (12 coaches)

7 On time
21:56 London Victoria

CALLING AT:

East Croydon (22:11)
Clapham Junction (22:21)
London Victoria (22:28)

Southern (8 coaches)

4 On time
22:01 Brighton

CALLING AT:

Haywards Heath (22:11)
Brighton (22:27)

Gatwick Express (8 coaches)

6 On time
22:01 Reading

CALLING AT:

Redhill (22:09)
Reigate (22:17)
Dorking Deepdene (22:25)
Guildford (22:42)
North Camp (22:54)
Blackwater (23:01)
Wokingham (23:10)
Reading (23:21)

Great Western Railway

1 On time
22:02 London Victoria

CALLING AT:

East Croydon (22:18)
Clapham Junction (22:29)
London Victoria (22:38)

Southern (4 coaches)

5 On time
22:05 Three Bridges

CALLING AT:

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

Thameslink (12 coaches)

7 On time
22:06 Bedford

CALLING AT:

East Croydon (22:21)
London Bridge (22:35)
London Blackfriars (22:41)
City Thameslink (22:43)
Farringdon (22:46)
London St Pancras (Intl) (22:50)
West Hampstead Thameslink (22:59)
St Albans (23:17)
Harpenden (23:25)
Luton Airport Parkway (23:31)
Luton (23:34)
Leagrave (23:39)
Harlington (23:43)
Flitwick (23:47)
Bedford (00:01)

Thameslink (12 coaches)

4 22:08