Knowledgebase XMLs

«Go Back

About Knowledgebase

Knowledgebase (KB) is the name given to the backend engine that contains all the textual content provided on the National Rail Enquiries website. It holds a range of rich supplementary information, both static and real-time, about traveling by train on the GB rail network.

KB contains a database of static information about the facilities at each of the 2500+ stations on the network, including specific information about available facilities for those with accessibility needs. Whilst this data is held centrally in the NRE Knowledgebase, it is kept up-to-date by each of the TOCs responsible for operating and maintaining the stations. Another primary content base held in KB is contextual information about real-time disruption to train services, along with detail about planned changes to services due to engineering work. Other content includes information about the train operating companies, ticket types, promotions, fares and restrictions.

Knowledgebase Feeds

Information in KB is made available in XML files that are downloaded through a web browser. Access to the URLs which contain the XML is enabled by whitelisting IP addresses, meaning the user must have a static IP Address to gain access to the data. A list of all available Knowledgebase XML feeds is shown below.

Full Name

Feed Type

Licence

User Guide

Sign Up

Stations XML

XML File

NRE Licence

KB User Guides

Contact Us

Stations Made Easy XML

XML File

NRE Licence

KB User Guides

Contact Us

Incidents XML

XML File

NRE Licence

KB User Guides

Contact Us

National Service Indicator XML

XML File

NRE Licence

KB User Guides

Contact Us

Ticket Types XML

XML File

NRE Licence

KB User Guides

Contact Us

Restrictions XML

XML File

NRE Licence

KB User Guides

Contact Us

Train Operating Companies XML

XML File

NRE Licence

KB User Guides

Contact Us

Promotions XML

XML File

NRE Licence

KB User Guides

Contact Us

Internal Knowledgebase

NRE Website

NRE Licence

n/a

Contact Us

Knowledgebase Terms of Access

All KB data sets are made available under formal licence, requiring signature by both parties. To request a licence, please complete a licence request form and return it to our licensing team at infoservices@nationalrail.co.uk

Knowledgebase Usage Charges

The KB data sets are provided free to all users, meaning they are hosted at a loss to NRE.  As such, only minimal resource is available to carry out the whitelisting of IP Addresses. To enable us to continue providing this service to everyone, whitelisting requests are submitted to our supplier on the 1st and 3rd Thursday of every railway period.  Rather than action each request separately, on a resource heavy ad-hoc basis, we accumulate requests and arrange the whitelisting of multiple IP Addresses in one go. Please be aware, this may lead to longer setup wait times for some people than others.

Technical Support

As this is a free service, no formal user support is provided. However, unofficial technical support can be found via the open rail data user forum Open Rail Data-Talk

Improving Things for Developers

We are always aiming to improve things for developers and have taken feedback on board about using the KB data sets. Our intention is to streamline the registration and set-up process by enabling automated access to the Knowledgebase data through the National Rail Data Portal. We also hope to remove the IP Address whitelisting access restrictions, moving to a token or key based model.  We don’t yet have anticipated timescales for this functionality to be delivered, however we hope for the service to be in place before the end of financial year 2015/16.