About the Network Rail feeds

From Open Rail Data Wiki
Jump to navigation Jump to search

What are the feeds?

Five feeds are available:

  • RTPPM - Real Time Public Performance Measure. This shows the performance of trains against the timetable, measured as the percentage of trains arriving at destination on time. Updated every minute.
  • Train Movements - messaging from the TRUST system, containing reports of train movements past timetabled calling and passing points.
  • TD - data from the Train Describer system, showing raw data with train movements in more detail than the Train Movements feed.
  • VSTP - late-notice train schedules which are not available through the Schedule feed.
  • TSR - Temporary Speed Restrictions
  • SCHEDULE - extracts of train schedules from ITPS.

How do I get the data?

First, sign up for an account at http://datafeeds.networkrail.co.uk. Log in and select the feeds you wish to use.

You will need to write a Stomp client, available for many languages.

Schedule Data, cannot be obtained via Stomp, data is obtained by GZ file download from the Amazon S3 Data Buckets, each Zip file consists of a collection of JSON strings. The data consists of a primary set of data (rather large, can be 1.5GB in size) and a set of daily corrections that should be applied to the base data.

Examples

Example source code showing how to connect to the data feed and display the messages received in various languages.

PHP Example

C# Example

Java