Data sources
This page lists the open data behind Live Trains UK, the licence each source comes under and, where the licence asks for it, the exact method we use to derive our own database from it. It is written to be checked by anyone.
France: how we derive our timetable from SNCF’s open data
Résumé (non contractuel). Live Trains UK utilise le jeu de données « Réseau SNCF TGV, Intercités et TER » (SNCF), disponible sur transport.data.gouv.fr sous la licence ODbL. Cette page décrit, conformément à l’article 4.6 b de la licence, la méthode par laquelle nous en dérivons notre base : nous gardons les trains (pas les cars), cinq jours de circulation, les heures en instants, nos propres numéros de gares, et nous ajoutons les correspondances de gares avec d’autres réseaux décrites ci-dessous. Nous n’ajoutons aucune autre information aux données de la SNCF.
The database we start from
- Name: Réseau SNCF TGV, Intercités et TER (SNCF), “Horaires SNCF”.
- Where: transport.data.gouv.fr/datasets/horaires-sncf (the national access point).
- Licence: Open Database License 1.0 (opendatacommons.org/licenses/odbl/1.0/), with transport.data.gouv.fr’s Conditions Particulières d’Utilisation.
- The file: the static GTFS file
Export_OpenData_SNCF_GTFS_NewTripId.ziplisted there. We record the SHA-256 of every copy we use; the copy this method was last checked on is3cb685a58f32a2daec8c554a0c1430281132a5e7ddb11602a9ceda50d6d10e3c(published 16 November 2026). - We do not use SNCF’s realtime files for this database.
The method, step by step
Steps 1 to 9 run once per night, on the whole file. Nothing in them depends on any other data except where step 10 says so.
- Read the file as published. All tables of the GTFS file are read with their published values; the file is refused whole if any table is cut short.
- Keep the trains. A trip is kept when its route’s
route_typeis 2 (rail), 100 to 117 (rail, extended types) or 0 (in this file, four tram-train lines between stations with UIC codes), and the second part of itstrip_id(between the first and second colon) is neitherCTE(“Car TER”) norCRE(“Car à réservation”). Every other trip, including every coach on a rail route, is left out. - Keep five service days. The service days kept are yesterday, today and the three days after (UTC calendar day of the run). A trip runs on a day when
calendar_dates.txt(andcalendar.txt, if the file has one) says itsservice_idruns that day. - One row per train and day. Each kept trip is stored once per day it runs, keyed by its
trip_idand the day. - Calls at stations, not platforms. Each
stop_timesrow of a kept trip becomes a call at the station its stop belongs to: the stop’sparent_stationwhere it has one, otherwise the stop itself. The call keeps itsstop_sequence. Its boarding rule is “may board” unlesspickup_typeis 1, and its alighting rule is “may alight” unlessdrop_off_typeis 1. - Times as instants. Each
arrival_timeanddeparture_timebecomes an instant in time: noon of the service day in the agency’s time zone (agency_timezone, Europe/Paris for all agencies in this file), minus 12 hours, plus the time as written (so24:25:00is 00:25 the next morning). Nothing is rounded. - The train number. The train number is
trip_short_namewhere the file has one; otherwisetrip_headsignwhen it is all digits (in this file it always is). Atrip_headsignthat is the train number is not kept as a destination. - Each station’s identity.
- UIC code: the eight digits at the end of the station’s
stop_id(StopArea:OCE87686006). When the eighth digit is the correct check digit of the station’s five digits (the Luhn method), the code is the first seven digits. When it is not, and the code is not French (does not start with 87), and the eighth digit is 0, the code is still the first seven digits: SNCF writes eleven stations abroad this way (Bruxelles-Midi is88140010; the check digit of 8814001 is 9). A French code with a wrong check digit gets no UIC code. - Country: from the first two digits of the UIC code (71 Spain, 80 Germany, 82 Luxembourg, 83 Italy, 85 Switzerland, 87 France, 88 Belgium). No code, or a prefix not in our table: no country.
- Time zone: that country’s single zone (France Europe/Paris, Belgium Europe/Brussels, and so on). No country: no time zone. The instants of step 6 do not depend on this; it only decides the clock a station’s times are shown on.
- Name and position: the station row’s
stop_name,stop_latandstop_lon, unchanged.
- UIC code: the eight digits at the end of the station’s
- Our station numbers. Each station gets a number of ours,
LTG-<country>-<six digits>(LTG-FR-000357), given once and kept from night to night in a table that remembers which UIC code (and, failing that, whichstop_id) it was given for. The same UIC code in two publishers’ files gets the same number. Numbers are never reused. - What we add from elsewhere (“additional Contents”).
- Links to other networks’ stations: a hand-made table ties a station of another network to a station of this file by its UIC code. Today: London St Pancras International, Paris Gare du Nord, Bruxelles-Midi, Rotterdam Centraal and Amsterdam Centraal, each tied to the code of Great Britain’s network (a TIPLOC:
PARISNDfor Paris Gare du Nord), with the evidence it was decided on (for example “28 calls, 2026-11-17: 24 same minute, 4 within 5 min”, comparing Eurostar’s own timetable with Great Britain’s). Two of these name a station of this file: Paris Gare du Nord (8727100) and Bruxelles-Midi (8814001). - Corrections by hand: a table for any correction or addition we make to a station, a train or a call, each with the value the file has, the value we use, its source and its evidence. It is empty: we have corrected nothing in SNCF’s data.
- Links to other networks’ stations: a hand-made table ties a station of another network to a station of this file by its UIC code. Today: London St Pancras International, Paris Gare du Nord, Bruxelles-Midi, Rotterdam Centraal and Amsterdam Centraal, each tied to the code of Great Britain’s network (a TIPLOC:
That is all. We do not change any station name, position, time, train number or boarding rule other than as above, and we add no train, station or call.
What is not part of our derived database
These are kept apart from SNCF’s rows and are not altered SNCF data:
- other networks’ timetables (Great Britain’s, the Netherlands’, Belgium’s, Germany’s, Eurostar’s), stored beside SNCF’s rows but marked as another source;
- live departure information;
- the results of our journey planner, and the route lines drawn on maps (France’s come from IGN, under Licence Ouverte, not from SNCF).
Reproducing it
Steps 1 to 9 applied to the same file give the same stations, trains and calls. We have checked this ourselves: on the file of 16 November 2026 (SHA-256 above), for 16 to 20 November, the method gives 46,025 trains, 418,490 calls and 2,503 stations, and an independent re-implementation of the selection (written separately, sharing no code) gives the same three numbers, the same trains per day (9,248, 8,505, 9,341, 9,383, 9,548) and, call by call, the same station and the same time text as SNCF’s own file.
Licence notice
Contains information from Réseau SNCF TGV, Intercités et TER (SNCF) (transport.data.gouv.fr/datasets/horaires-sncf), which is made available here under the Open Database License (ODbL) (opendatacommons.org/licenses/odbl/1.0/).
Published by Live Trains UK. Contact: the contact form at livetrainsuk.co.uk/support.
Other countries
When we add another country’s open-data feed to Live Trains UK, this page lists its publisher, its licence and the method we use on it, in the same way as the France section above. Inside the app and on the site, each country’s timetable is credited to the publisher it comes from, by name.
UK-specific sources are listed on the pages that use them, for example the live disruption report lists its sources at the foot of the page.
If you have a question about this page or the data behind Live Trains UK, use the contact form.