Reference Data

Three sets of reference data are available from Network Rail. The All Reference Data topic must be selected and subscribed to in the My Feeds tab of the data feeds site to be able to access the CORPUS and SMART data. The Train Planning data is available from this site. See the about the feeds page for more details.

Other useful reference sources are also listed.

= CORPUS: Location Reference Data =

This is provided from the CORPUS system (Codes for Operations, Retail & Planning – a Unified Solution). The data is a periodically-updated snapshot of the CORPUS database. This can be used to translate STANOX, TIPLOC, NLC, UIC and 3-alpha (CRS) codes to location descriptions.

Downloading CORPUS Data
To download the data, visit http://datafeeds.networkrail.co.uk/ntrod/SupportingFileAuthenticate?type=CORPUS

CORPUS Data Format
CORPUS data is supplied as a plain text file containing a JSON representation of the data. Entries comprise the following fields (not all fields may contain data):

= SMART: Berth Stepping Data =

The SMART database contains details of train describer berths and allows movements into berths to be translated into arrivals and departures from locations. The data feed contains a periodically-updated snapshot of the SMART database.

Downloading SMART Data
To download the data, visit http://datafeeds.networkrail.co.uk/ntrod/SupportingFileAuthenticate?type=SMART

SMART Data Format
SMART data is supplied as a plain text file containing a JSON representation of the data. Entries comprise the following fields (not all fields may contain data):

An in-depth overview of how to use SMART data is available.

= Train Planning Data =

The Train Planning data contains several sets of reference and geographic data:


 * Reference: Reference codes and Timing Loads
 * Geographic Data: Locations, Platforms, Network and Timing Links

The latest version of the data from [[Media:20140116_ReferenceData.gz|16th January 2014 is available]]. This data will be updated twice a year.

Documentation on the data structure is available.

= Other Sources =


 * Phil Deaves has compiled a reference site listing location codes (CRS, STANOX and TIPLOC) as well as a comprehensive listing of other railway codes
 * http://trains.barrycarlyon.co.uk/data/locations/ provides a searchable list of locations with their CRS, STANOX and TIPLOC codes and offers a downloadable SQL dump of the data
 * NaPTAN (National Public Transport Access Nodes) is provided by the Department for Transport and is the single government source for all public transport stops/stations in the UK, also including bus stops, ferry terminals, airports, metro stations, and heritage railways, as well as associated metadata, including the location of entrances to stations, and platform locations in some circumstances. Contains ATCO, CRS and TIPLOC codes and latitude/longitudes.
 * Peter Hicks at OpenTrainTimes has written a a useful guide to the relationships between different datasets which gives a good overview of the way that different sets of data interact
 * Network Rail Jargon Buster - a good range of definitions for railway technical terms.