A list of all RIDs for a given day

114 views
Skip to first unread message

James Holyhead

unread,
May 31, 2017, 7:32:42 AM5/31/17
to A gathering place for the Open Rail Data community
Hi folks, 

Is there a service which will provide a complete list of allocated RIDs for a given day?

Alternatively, is there a way to collect a list of all passenger rail services that operated on a given day (which I could then feed into the HPS API to obtain the RIDs)?

Thanks in advance,
 

NRE Online Services

unread,
Jun 1, 2017, 5:10:04 AM6/1/17
to A gathering place for the Open Rail Data community
There are various different ways of getting a list of passenger services, but for your purposes probably the easiest is to download the Darwin timetable file from the NRDP (which you presumably have access to as you mention HSP API) as this will give you the passenger services expected to run for today and tomorrow (including their RIDs).

As an aside, for anyone who's interested, Darwin RIDs are related to the train UID and SSD from the schedule. So if a schedule has a UID of W12345 and an SSD of 10-06-2017 then the RID will be constructed from the SSD in format YYYYMMDD plus the ASCII code for the UID initial letter (in this case 87 for 'W') plus the rest of the UID. So:

W12345 on 10-06-2017

becomes

201706108712345

therefore if you know the UID and SSD for any schedule you can derive the RID (or vice versa) without having to do any lookups.

This was a change made a few months back, for reasons related to testing, so holds true for schedules since 01/09/2016.
Reply all
Reply to author
Forward
0 new messages