XML Data Feed Access - Unplanned Disruptions

242 views
Skip to first unread message

Malcolm Oakley

unread,
Apr 17, 2015, 4:21:30 AM4/17/15
to openrail...@googlegroups.com
Hello Group,
 
How do I gain access to the NRE public service disruption XML data feed? I wish to display on my website a list of the latest rail travel disruptions.
I would be using a Wordpress plugin that would access the XML data feed at set intervals and this would automatically display the latest disruptions on my website .
 
I DO NOT wish to access any live train data, just the XML feed for service disruptions.
Am a bit confused as to what and how I access this if at all. Darwin it would seem is NOT what I want.
 
Kind Regards,
 
Malcolm Oakley
 

Leo Inoue

unread,
Apr 17, 2015, 4:46:17 AM4/17/15
to openrail...@googlegroups.com
Hi Malcom 
It sounds like what you are looking for is the NRE Incidents feed. NRE's site links to a very old version of the spec though (http://www.nationalrail.co.uk/52397.aspx

Regards
Leo Inoue

Malcolm Oakley

unread,
Apr 17, 2015, 5:35:21 AM4/17/15
to openrail...@googlegroups.com


Hi Leo,

I have seen that page before and yes, it is what I require. I have contact NRE by email for more information but no response so far.

Kind Regards,

Malcolm Oakley

Leo Inoue

unread,
Apr 17, 2015, 6:12:27 AM4/17/15
to openrail...@googlegroups.com
Hi Malcolm
The incidents feed is part of the KB (KnowledgeBase) and one option for a future phase was to make the KB feeds available through the NRE Open Data Portal that currently exposes the Darwin push port. Not sure what the current plan is, but I can check with NRE.

Regards,
Leo Inoue

nre...@gmail.com

unread,
Apr 20, 2015, 3:23:16 AM4/20/15
to openrail...@googlegroups.com
Hi Malcolm

This page is the correct page for info about signing up to the XML feeds http://www.nationalrail.co.uk/46391.aspx

Also, you can contact infose...@nationalrail.co.uk and speak to Anita who will set you up with the relevant licenses for the data feeds.

Cheers
Lindsay

James Singleton

unread,
Apr 25, 2015, 1:52:41 PM4/25/15
to openrail...@googlegroups.com
Hi Malcolm,

It sounds like you can get what you are after from the TfL APIs (which are excellent BTW).

If you want the national rail statues by train company (http://www.nationalrail.co.uk/service_disruptions/indicator.aspx) then you can get the same data at https://www.tfl.gov.uk/national-rail/status/.

This URL https://api.tfl.gov.uk/line/mode/national-rail/status returns that data as cross domain JSON.
[
  • {
    • $type: "Tfl.Api.Presentation.Entities.Line, Tfl.Api.Presentation.Entities",
    • id: "arriva-trains-wales",
    • name: "Arriva Trains Wales",
    • modeName: "national-rail",
    • created: "2015-04-17T12:19:23.017",
    • modified: "2015-04-17T12:19:23.017",
    • disruptedNaptanIds: [ ],
    • lineStatuses: [
      • {
        • $type: "Tfl.Api.Presentation.Entities.LineStatus, Tfl.Api.Presentation.Entities",
        • id: 0,
        • statusSeverity: 10,
        • statusSeverityDescription: "Good Service",
        • created: "0001-01-01T00:00:00",
        • validityPeriods: [ ]
        }
      ],
    • routeSections: [ ]
    },
  • {
    • $type: "Tfl.Api.Presentation.Entities.Line, Tfl.Api.Presentation.Entities",
    • id: "c2c",
    • name: "c2c",
    • modeName: "national-rail",
    • created: "2015-04-17T12:19:23.11",
    • modified: "2015-04-17T12:19:23.11",
    • disruptedNaptanIds: [ ],
    • lineStatuses: [
      • {
        • $type: "Tfl.Api.Presentation.Entities.LineStatus, Tfl.Api.Presentation.Entities",
        • id: 0,
        • statusSeverity: 10,
        • statusSeverityDescription: "Good Service",
        • created: "0001-01-01T00:00:00",
        • validityPeriods: [ ]
        }
      ],
    • routeSections: [ ]
    },

If you use this approach then you don't need to do anything server side. You can just put some JavaScript on your site that pulls the data directly into the user's browser from TfL.

You can also include other modes of transport. e.g. https://api.tfl.gov.uk/line/mode/tube,overground,dlr,tram,national-rail/status

Cheers
James


On Friday, 17 April 2015 09:21:30 UTC+1, Malcolm Oakley wrote:
Reply all
Reply to author
Forward
0 new messages