Live Train DataLINETRACKER

Legal

Attributions

TrainTimes is built on open data and open source. Below are the data sources, licences, and libraries that make it possible.

Train Running Data

Network Rail

Real-time train movement events, berth stepping (TD feed), and timetable schedule data.

Open Government Licence v2.0with Network Rail-specific amendments

Live Departure Boards

National Rail Enquiries (Darwin)

Platform numbers, coach counts, cancellations, and delay reason codes via Darwin LDBSVWS.

NRE Open Data Licence v3.0worldwide, royalty-free, commercial use permitted

This application is not affiliated with or endorsed by National Rail Enquiries.

Map Tiles

Protomaps · OpenFreeMap · OpenStreetMap

Vector basemap tiles rendered with MapLibre GL JS. When a self-hosted PMTiles archive is configured (Cloudflare R2), the Protomaps dark style is used. Otherwise, tiles are served by OpenFreeMap (no API key required). Map data © OpenStreetMap contributors.

Station Locations

NaPTAN (DfT) · OpenStreetMap

Railway station coordinates sourced from the National Public Transport Access Nodes (NaPTAN) dataset via the DfT API. Supplemented by OpenStreetMap elements tagged with ref:tiploc, fetched via the Overpass API.

Rolling Stock Images

Wikimedia Commons

Train class images are sourced via the Wikipedia REST API from individual class articles. Operator-specific fleet images are sourced from each train operating company’s Wikipedia article (e.g. ScotRail, Northern Trains) using the media-list API, giving livery-accurate photos. All images are hosted on Wikimedia Commons and displayed with individual photographer credit and licence.

Train Operating Companies

TOC names and codes referenced in this application:

AW Transport for WalesCC c2cCH Chiltern RailwaysCS Caledonian SleeperEM East Midlands RailwayES EurostarGC Grand CentralGR LNERGW Great Western RailwayHT Hull TrainsHX Heathrow ExpressIL LumoLE Greater AngliaLM West Midlands TrainsLO London OvergroundME MerseyrailNT Northern TrainsNY North Yorkshire Moors RailwaySE SoutheasternSN SouthernSR ScotRailSW South Western RailwayTL ThameslinkTP TransPennine ExpressVT Avanti West CoastXC CrossCountryXR Elizabeth line

Open Source Libraries

Next.jsApp frameworkMIT
ReactUI libraryMIT
MapLibre GL JSInteractive mapsBSD 3-Clause
PMTilesMap tile formatMIT
Lucide ReactIconsISC
FastifyAPI serverMIT
node-postgresPostgreSQL clientMIT
ZodSchema validationMIT
stompitSTOMP messaging clientMIT
fast-xml-parserXML parsingMIT
Google reCAPTCHA v3Spam protectionGoogle Terms of Service