• Our new ticketing site is now live! Using either this or the original site (both powered by TrainSplit) helps support the running of the forum with every ticket purchase! Find out more and ask any questions/give us feedback in this thread!

Understanding RealTimeTrains data

Status
Not open for further replies.
Sponsor Post - registered members do not see these adverts; click here to register, or click here to log in
R

RailUK Forums

pokemonsuper9

Established Member
Joined
20 Dec 2022
Messages
2,829
Location
Greater Manchester

SargeNpton

Established Member
Joined
19 Nov 2018
Messages
1,397
The Unique Identity (UID) is allocated when trains are uploaded to Network Rail's Train Planning System.

It may only apply to a train on one day or it could be allocated to the same train for a complete timetable period. However, it is the only code that is unique on any one day. All other methods of identifying a train may be repeated on the same day in different parts of the country, or may be repeated on the same route at different times during the day where there may be an intensive service.
 

ainsworth74

Forum Staff
Staff Member
Global Moderator
Joined
16 Nov 2009
Messages
29,262
Location
Redcar
Yeah I still don't get why the additional ID was necessary
1V57 happens to be unique on the network today in that there aren't any other trains using that reporting number.

However take 2D06. Do you mean the 0430 Gravesend to Charing Cross? The 0628 Darlington to Saltburn? 0739 Leamington Spa to Stratford-upon-Avon? Or perhaps the 1845 London Liverpool Street to Cheshunt?

The UIDs are unique day by day so if you are looking at P55657 you know that that is the 0628 Darlington to Saltburn. There is no other train on the network today with that UID. This is important for planning and various other reasons. The reporting number is sufficient for signalling purposes as none of them are likely to show up to the same signaller at the same time. But the UIDs are important to ensure that you're dealing with the right service for other purposes.

Also, to be clear, this is nothing to do with RTT. These are internal industry identifiers that RTT is displaying.
 
Last edited:

SargeNpton

Established Member
Joined
19 Nov 2018
Messages
1,397
Yeah I still don't get why the additional ID was necessary though. Both still have the same unique ID for a given day
Because it is the principal index in the current Train Planning System (and in the previous systems dating back 40 years or more).
 

swt_passenger

Veteran Member
Joined
7 Apr 2010
Messages
33,066
Ahhh I see!!!
There was a thread way back where the questioner asked about duplicated train IDs (aka headcodes). Then as now, 2P12 was given as a good example.


So this is what RTT shows today, you'll quickly see it includes the Stourbridge shuttle which repeats 3 times:
 

hwl

Established Member
Joined
5 Feb 2012
Messages
7,698
Ahhh I see!!!
Headcodes are effectively only unique within an NR region and within a ~6 hour buffer window.

Southeastern are the worst culprit for using headcodes twice in one day (same route and stopping pattern but ~1/2 day apart).
 

zwk500

Veteran Member
Joined
20 Jan 2020
Messages
15,452
Location
Bristol
Headcodes are effectively only unique within an NR region and within a ~6 hour buffer window.

Southeastern are the worst culprit for using headcodes twice in one day (same route and stopping pattern but ~1/2 day apart).
There are several examples of headcodes in the same region within a 6 hour buffer - I'm fairly sure there's an avanti departure from Euston with the same headcode of rhe sleeper only a couple of hours ahead.
 

jnjkerbin

Member
Joined
25 Apr 2012
Messages
842
Location
Down south
Another common example are the 2Hxx Charing X - Tunbridge Wells trains and the 2Hxx London Bridge - Beckenham Jn trains, which often cause erroneous reports between London Bridge and Bricklayers Arms where both can be scheduled within an hour or two of each other, albeit on different sets of lines.
 

Boodiggy

Member
Joined
8 Nov 2012
Messages
642
There are several examples of headcodes in the same region within a 6 hour buffer - I'm fairly sure there's an avanti departure from Euston with the same headcode of rhe sleeper only a couple of hours ahead.
1M11
 

Horizon22

Established Member
Associate Staff
Jobs & Careers
Joined
8 Sep 2019
Messages
9,555
Location
London
Headcodes are effectively only unique within an NR region and within a ~6 hour buffer window.

Southeastern are the worst culprit for using headcodes twice in one day (same route and stopping pattern but ~1/2 day apart).

Used to be 6 hour, but I think the Elizabeth line has broken that now.

Often up to 4 trains a day with the same headcode, simply due to the sheer number of trains in sequence. Search any 9Wxx or 9Yxx headcode on a weekend and you’ll find a few.
 

Peter0124

Established Member
Joined
20 Nov 2016
Messages
2,374
Location
Glasgow
The ID changes on Saturdays and Sundays sometimes. Also the ID usually changes after new timetable change days.
 

norbitonflyer

Established Member
Joined
24 Mar 2020
Messages
4,072
Location
SW London
Are they completely unique for a given day though? Does an overnight train arriving at its destination on Tuesday morning have a different UID to the service starting out on Tuesday evening?
 

SteveHFC

Member
Joined
1 Nov 2014
Messages
183
Are they completely unique for a given day though? Does an overnight train arriving at its destination on Tuesday morning have a different UID to the service starting out on Tuesday evening?
No - because the one arriving at its destination on Tuesday morning will have started on Monday evening.
 

zwk500

Veteran Member
Joined
20 Jan 2020
Messages
15,452
Location
Bristol
Are they completely unique for a given day though? Does an overnight train arriving at its destination on Tuesday morning have a different UID to the service starting out on Tuesday evening?
That would be the Monday train and Tuesday train. The fact it happens to run into Tuesday morning does not affect the UID rules. The departures are still 24 hours apart.
 

D6975

Established Member
Joined
26 Nov 2009
Messages
3,010
Location
Bristol
The Cumbrian Coast has lots of 2 a day headcodes, surprising as it's not that busy a route.
 

geoffk

Established Member
Joined
4 Aug 2010
Messages
3,664
Another example of reused headcodes - 2N99 at Northern - https://www.realtimetrains.co.uk/service/gb-nr:P45010/2023-08-11/detailed#allox_id=0 & https://www.realtimetrains.co.uk/service/gb-nr:P56393/2023-08-08/detailed#allox_id=0
Both however interact with Preston box, albeit the Blackburn train terminates at 1609 and the Blackpool train enters Preston control around 1800.
This must be very common with class 2 trains surely, but less so with class 1. What about freights?
 

Tom

Member
Joined
19 Jan 2008
Messages
628
Location
35,000ft
Are they completely unique for a given day though? Does an overnight train arriving at its destination on Tuesday morning have a different UID to the service starting out on Tuesday evening?
The uniqueness is defined as the combination of service UID and departure date from planned origin.

e.g. if a train on Monday actually started short and departed en-route from its first station on a Tuesday, and the Tuesday version ran to plan, the altered Monday train is still unique as it was planned to depart on Monday

This must be very common with class 2 trains surely, but less so with class 1. What about freights?
Not entirely uncommon.
 
Joined
15 Apr 2020
Messages
353
Location
Wakefield
This must be very common with class 2 trains surely, but less so with class 1. What about freights?
Not uncommon for class 1 or freights to not be ‘unique’ on a day at all.

Most examples on this thread have been of the same headcode on the same panel, but it’s just as important for systems to differentiate between them across the country - for example a quick search on RTT shows there are 5 1A04s today, each of course needing their own UID.
 

jfollows

Established Member
Joined
26 Feb 2011
Messages
8,178
Location
Wilmslow
Going back in time, headcodes were sometimes used as route indicators, for example 2H54 was used for Alderley Edge-Altrincham via Stockport and 2H53 for Alderley Edge-Altrincham via Styal, in both directions. So two trains with the same headcode often passed each other. This from 1974, still the case in 1977, but at some point it was changed. It couldn't happen today for obvious reasons but also because Alderley Edge is now deemed to be in the Stoke-on-Trent division like Crewe and so trains terminating there are now 2Kxx rather than 2Hxx.
 

_toommm_

Established Member
Joined
8 Jul 2017
Messages
6,081
Location
Yorkshire
This must be very common with class 2 trains surely, but less so with class 1. What about freights?

Forgetting the xQxx and xZxx headcodes as they’re for special circumstances, there’s 2,400 unique headcodes for each class of train per day, 0 through 9. I’m sure in the 1Xxx and 2Xxx series, there’s probably ones unused, put also as noted above lots of duplicates.
 

Vexed

Member
Joined
12 Jan 2020
Messages
325
Location
Herts / Hants
There's some very close ones at Farringdon between the Elizabeth line and Thameslink such as the first 9T43 departing at 1527 then Thameslink's 9T43 departing less than half an hour later at 1554.

Today there's also an early morning TL 9T43 which is 9W13 in the WTT but is a 9T today because it's running via London Bridge instead of Elephant & Castle/Streatham Common.
 

Horizon22

Established Member
Associate Staff
Jobs & Careers
Joined
8 Sep 2019
Messages
9,555
Location
London
There's some very close ones at Farringdon between the Elizabeth line and Thameslink such as the first 9T43 departing at 1527 then Thameslink's 9T43 departing less than half an hour later at 1554.

Today there's also an early morning TL 9T43 which is 9W13 in the WTT but is a 9T today because it's running via London Bridge instead of Elephant & Castle/Streatham Common.

Although it’s the ‘same’ station, they are different infrastructure routes of course.
 

Class15

Established Member
Joined
30 Dec 2021
Messages
3,276
Location
North London or Mildmay line
The uniqueness is defined as the combination of service UID and departure date from planned origin.

e.g. if a train on Monday actually started short and departed en-route from its first station on a Tuesday, and the Tuesday version ran to plan, the altered Monday train is still unique as it was planned to depart on Monday


Not entirely uncommon.
It’s a little confusing as the headcode system on the NLL means that there is generally one 2Nxx going one way per day and another 2Nxx going the other!
 
Status
Not open for further replies.

Top