☕ Buy me a coffee

Data & credits

Where the map's data comes from, and what it's built with.

Every railway line, station, tunnel and viaduct shown here is taken directly from the open datasets below. The data is real and sourced from established public bodies and the OpenStreetMap community. Nothing on the map is invented or generated. Below is exactly where it comes from and the software that renders it.

Data sources

Railway lines, tunnels & viaducts: OpenStreetMap
The railway network geometry, names, tunnels, bridges and line types are extracted from OpenStreetMap via the Overpass API.
© OpenStreetMap contributors, licensed under the Open Database Licence (ODbL).
Stations: OpenStreetMap
Station locations and names (including heritage-railway stations) are taken from OpenStreetMap, the same source as the lines.
© OpenStreetMap contributors, licensed under the Open Database Licence (ODbL).
Live passenger trains: Rail Data Marketplace (Darwin)
The live trains layer is derived from National Rail's Darwin real-time train information (forecasts, formations and daily timetables), published by the Rail Delivery Group via the Rail Data Marketplace. Positions are estimated between timing points.
Contains data from National Rail / Rail Delivery Group.
Signalling, schedules & freight: Network Rail open data
Freight trains, signalling-based train positions and measured speeds use Network Rail's open data feeds: train movement reports (TRUST), train describer berth data (TD), the national schedule, and the SMART and CORPUS reference datasets.
Contains information licensed under the Open Government Licence v3.0 © Network Rail Infrastructure Ltd.
Closed / former stations: Wikidata
The optional "closed / former stations" layer is built from Wikidata's record of UK railway stations no longer in service.
Wikidata, dedicated to the public domain (CC0).
Station info links: Wikipedia & Google Maps
Clicking a station offers a link to its Wikipedia article and to its location on Google Maps. The article references come from OpenStreetMap / Wikidata; the pages themselves are external.
Wikipedia content © its authors (CC BY-SA); Google Maps © Google.
Timetable & departure links: Realtime Trains
Train popups link to the service's full timetable, and station popups to the live departure board, on Realtime Trains, an excellent independent service that goes far deeper than this map does. The pages are external and unaffiliated.
Realtime Trains © its operators.
Postcode search: postcodes.io
Postcode-to-location lookups use the free, open-source postcodes.io API, built on the ONS Postcode Directory.
Contains OS data © Crown copyright & database right; Royal Mail data © Royal Mail copyright & database right; National Statistics data © Crown copyright & database right (Open Government Licence).

Software & services

The open-source library that renders the interactive map.
BSD-3-Clause licence.
Base map tiles: OpenStreetMap & CARTO
The underlying street/terrain map imagery. The standard base uses OpenStreetMap tiles; the “Hide map labels” option uses CARTO’s label-free base map, also built on OpenStreetMap data.
© OpenStreetMap contributors; base map styling © CARTO.
Map label fonts: OpenMapTiles fonts
Open Sans glyphs, used for the tunnel and viaduct labels.
Open Sans, Apache Licence 2.0.
Analytics: Plausible
Privacy-friendly, cookieless visitor analytics, with no personal data or tracking cookies.

trainmap.co.uk is free and ad-free.
If it's useful, please consider

☕ Buy me a coffee