| train_service_code | Train service code as per schedule |
| CIF_train_service_code | Divides trains into service groups and used for revenue reasons |
--
You received this message because you are subscribed to the Google Groups "A gathering place for the Open Rail Data community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openraildata-t...@googlegroups.com.
To post to this group, send an email to openrail...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Sadly no, the headcode isn't unique. It's unique per signalling area, but a train in the south-east and Glasgow could have the same headcodes, e.g., http://www.opentraintimes.com/search/by_headcode/1A32/2013-09-11
| 2P01 | P35595 | WTT | C | 05:47 Stourbridge Junction - Stourbridge Town | London Midland |
| 2P01 | P35596 | WTT | C | 14:09 Stourbridge Junction - Stourbridge Town | London Midland |
| 2P01 | P35598 | WTT | C | 22:29 Stourbridge Junction - Stourbridge Town | London Midland |
i.e. 721N09MC11
72 - first two digits of origin stanox (72410 in this case)
1N09 - headcode
11 - day of the month
The extra digits TRUST appends guarantee the TRUST ID for a train will be unique over a calendar month.
If all these are starting from the same place and the TRUST train_id is formatted as per Stuart Bridger's comment above:i.e. 721N09MC11
72 - first two digits of origin stanox (72410 in this case)
1N09 - headcode
11 - day of the month..then we will have (potentially) the same train_id for multiple trains on the same day.If Peters comment hold true:The extra digits TRUST appends guarantee the TRUST ID for a train will be unique over a calendar month.I guess that the extra couple of digits in the train_id (MC in the above example) must be there to guarantee the uniqueness for the day. Either that or they specify something unknown that make the uniqueness of this id for the day hold true.
If I can rely on the fact that the TRUST train_id is unique within a given day then I have a way forward.
Peter - how do you know this stuff, I cant find anything in the online docs that discuss the TRUST train_id in any detail.
I thought the format was already documented, but it appears it wasn't... I've updated http://nrodwiki.rockshore.net/index.php/Train_Activation with fuller details of the composition of the train ID, in particular the TSPEED and Call Code fields.
If I can rely on the fact that the TRUST train_id is unique within a given day then I have a way forward.I've only seen one example where this isn't guaranteed unique, but it's rather vague - I can dig out details if you need them.
Peter - how do you know this stuff, I cant find anything in the online docs that discuss the TRUST train_id in any detail.It's my job to know :-) I've been doing Open Data work for Network Rail since the start of the year, working with the real-time feeds for two and a half years (prior to them becoming open), and I'm busy working on a number of other rail-related consultancy projects at the moment.