Difference between revisions of "ReferenceData"

From Open Rail Data Wiki
Jump to navigation Jump to search
m
(Expanded details of reference data to include SMART and CORPUS field structures)
Line 1: Line 1:
 
{{DISPLAYTITLE:Reference Data}}
 
{{DISPLAYTITLE:Reference Data}}
= Reference Data =
 
  
Two sets of reference data have been provided.
+
Two sets of reference data are accessible.  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 reference data.
  
== Location reference data ==
+
== CORPUS: Location Reference Data ==
  
A periodically-updated snapshot of data from CORPUS is available.  This can be used to translate STANOX, TIPLOC, NLC, UIC and 3-alpha (CRS) codes to location descriptions.
+
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
 
To download the data, visit http://datafeeds.networkrail.co.uk/ntrod/SupportingFileAuthenticate?type=CORPUS
  
== Berth stepping data ==
+
=== 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):
 +
 
 +
{| class="wikitable"
 +
! Field
 +
! Description
 +
|-
 +
|STANOX
 +
|STANOX code
 +
|-
 +
|UIC
 +
|UIC code
 +
|-
 +
|3ALPHA
 +
|3-letter location code
 +
|-
 +
|TIPLOC
 +
|TIPLOC code
 +
|-
 +
|NLC
 +
|NLC code
 +
|-
 +
|NLCDESC
 +
|Description of the NLC
 +
|-
 +
|NLCDESC16
 +
|NLC description (16-character version)
 +
|-
 +
|}
 +
 
 +
== SMART: Berth Stepping Data ==
 +
 
 +
The SMART database contains details of [[TD|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.
  
A periodically-updated snapshot of data from SMART is available.  This can be used in conjunction with the [[TD]] feed to translate train movements in to arrivals and departures from locations.
+
=== Downloading SMART Data ===
  
 
To download the data, visit http://datafeeds.networkrail.co.uk/ntrod/SupportingFileAuthenticate?type=SMART
 
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):
 +
 +
{| class="wikitable"
 +
! Field
 +
! Description
 +
|-
 +
|TD
 +
|Train describer area
 +
|-
 +
|FROMBERTH
 +
|TD berth that movement is from
 +
|-
 +
|TOBERTH
 +
|TD berth that movement is to
 +
|-
 +
|FROMLINE
 +
|Line which the movement is from
 +
|-
 +
|TOLINE
 +
|Line which the movement is to
 +
|-
 +
|BERTHOFFSET
 +
|Berth offset
 +
|-
 +
|PLATFORM
 +
|Platform
 +
|-
 +
|EVENT
 +
|
 +
|-
 +
|ROUTE
 +
|
 +
|-
 +
|STANOX
 +
|STANOX code for location
 +
|-
 +
|STANME
 +
|Abbreviated description of location
 +
|-
 +
|STEPTYPE
 +
|
 +
|-
 +
|COMMENT
 +
|
 +
|-
 +
|}

Revision as of 17:13, 28 April 2013


Two sets of reference data are accessible. 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 reference data.

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):

Field Description
STANOX STANOX code
UIC UIC code
3ALPHA 3-letter location code
TIPLOC TIPLOC code
NLC NLC code
NLCDESC Description of the NLC
NLCDESC16 NLC description (16-character version)

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):

Field Description
TD Train describer area
FROMBERTH TD berth that movement is from
TOBERTH TD berth that movement is to
FROMLINE Line which the movement is from
TOLINE Line which the movement is to
BERTHOFFSET Berth offset
PLATFORM Platform
EVENT
ROUTE
STANOX STANOX code for location
STANME Abbreviated description of location
STEPTYPE
COMMENT