Terminating Services

219 views
Skip to first unread message

Gary Lee

unread,
Apr 27, 2023, 4:48:47 PM4/27/23
to A gathering place for the Open Rail Data community
Hi, I am developing a system in c# and Winforms to display the location of trains similar to TRAKSY.UK and OPENTRAINTIMES. This is purely for fun (ok i'm sad).
When a train terminates, e.g 2B60 at Huddersfield, it becomes a new service. In this case 2B25 to Sheffield. How to I find out what the new service is going to be?
Thanks
Gary

Gaelan Steele

unread,
Apr 27, 2023, 5:07:30 PM4/27/23
to openrail...@googlegroups.com
If you’re looking at a CIF-format timetable, these are the “associations”. Here’s the relevant line:

AANY39274C904792212122305191111100NPSHDRSFLD TO P

Breaking this down:
AAN: new association
Y39274: UID of the first train (2B60, the 1535 from Sheffield)
C90479: UID of the second train (2B25, the 1712 from Huddersfield)
221212: start date (Dec 12, 2022)
230519: end date (May 19, 2023)
1111100: weekdays this association is valid on (M-F, not weekends)
NP: type of association - NP presumably stands for “next/previous", there’s also JJ and VV for trains joining/dividing
S: date indicator (used to handle the edge case of associations with over-midnight services)
HDRSFLD: the place where the association happens (here, Huddersfield)
two spaces: not entirely sure what these are for, the docs call them “location suffixes” but I don’t think I’ve ever seen them used
T: “diagram type”, apparently always T
O: operating use only (can also be “P” for associations that are documented for passenger use - I believe these are always of type JJ or VV)
many spaces: reserved for future expansion
P: STP indicator, as with standard CIF entries

If you’re looking at the JSON timetable provided by Network Rail, there should be something similar, albeit in a pre-parsed format. Not sure if there’s any way to get association data from Darwin and the like.

Best wishes,
Gaelan
> --
> 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 view this discussion on the web, visit https://groups.google.com/d/msgid/openraildata-talk/dee85641-0377-4478-9898-aa5adb87b7c1n%40googlegroups.com.

Evelyn Snow

unread,
Apr 27, 2023, 5:29:40 PM4/27/23
to openrail...@googlegroups.com
Hi Gary

Nowt wrong with recreational rail data!

The schedule contains associations, which link two services together at a
particular common location within their schedules; "NP" associations indicate
that a train forming the "main" service is intended to next run the
"associated" service.

https://wiki.openraildata.com/index.php?title=Association_Records

Evelyn

2023-04-27T12:29:05-0700 Gary Lee <tigge...@gmail.com>:

Peter Hicks

unread,
Apr 27, 2023, 5:30:10 PM4/27/23
to A gathering place for the Open Rail Data community
Note: associations are only provided for areas with automatic code insertion (ACI) and similar systems.

Associations are inferred in another system called POINTA, available through LINX which isn't generally available yet, but probably will soon through the Rail Data Marketplace.

Evelyn Snow

unread,
Apr 27, 2023, 5:34:59 PM4/27/23
to openrail...@googlegroups.com
Much more descriptive than my explanation!

Darwin does include NP associations, and can indicate cancellation/deletion of
these in real time, though I'm not sure whether the extra complexity would be
worthwhile if the goal is tracking all trains and not just passenger trains

Evelyn

2023-04-27T22:07:16+0100 Gaelan Steele <g...@canishe.com>:

Gary Lee

unread,
Apr 28, 2023, 11:20:15 AM4/28/23
to A gathering place for the Open Rail Data community
Thanks for that Gaelen. Very helpful.
Is there any way to get the Train UID without looking up the schedule in the CIF?
Thanks
Gary

Gaelan Steele

unread,
Apr 28, 2023, 11:26:48 AM4/28/23
to openrail...@googlegroups.com
That depends - where are you getting the rest of your timetable data from?

Best wishes,
Gaelan

Stuart Gordon

unread,
Apr 30, 2023, 7:03:35 AM4/30/23
to A gathering place for the Open Rail Data community
 POINTA has its problems, as does WACI or TAP, but has anyone had a go at producing one? Be interesting to see if it's possible to infer, detect or predict associations on the planned or realtime timetable?

Peter Hicks (Poggs)

unread,
Apr 30, 2023, 7:25:44 AM4/30/23
to A gathering place for the Open Rail Data community

> On 30 Apr 2023, at 12:03, Stuart Gordon <stuartg...@gmail.com> wrote:
>
> POINTA has its problems, as does WACI or TAP, but has anyone had a go at producing one? Be interesting to see if it's possible to infer, detect or predict associations on the planned or realtime timetable?

That’s what POINTA does - infer associations from the working timetable, and it has a lot of business rules and configuration for various locations to do that.

The only way I see you could improve it would be to get rolling stock diagram data from TOCs to correct any associations that POINTA (or another system) couldn’t infer, but those would be fairly low in number.


Peter

Guido Eco

unread,
May 16, 2023, 5:23:05 PM5/16/23
to A gathering place for the Open Rail Data community
POINTA is only required where TOCs have not provided associations as part of the the timetable process.

The only way I see you could improve this would be to get TOCs to provide correct associations as part of the LTP and STP timetable planning process.

G

Deek

unread,
Jul 30, 2026, 11:31:37 AMJul 30
to A gathering place for the Open Rail Data community
Hi Peter,

Would you know if POINTA is available yet via rail data marketplace, if it is, is it only via LINX? I know this is a fairly old post, so I am hoping sufficient time has elapsed? 

Many thanks in advance. 

Derek. 

> To unsubscribe from this group and stop receiving emails from it, send an email to openraildata-talk+unsubscribe@googlegroups.com.

> To view this discussion on the web, visit https://groups.google.com/d/msgid/openraildata-talk/dee85641-0377-4478-9898-aa5adb87b7c1n%40googlegroups.com.

--
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-talk+unsubscribe@googlegroups.com.

Peter Hicks

unread,
Jul 30, 2026, 11:33:47 AMJul 30
to openrail...@googlegroups.com
Hi Derek

On Thursday, 30 July 2026 at 16:31, Deek <derek....@gmail.com> wrote:

Would you know if POINTA is available yet via rail data marketplace, if it is, is it only via LINX? I know this is a fairly old post, so I am hoping sufficient time has elapsed?

It isn't available yet, but I have a feeling it might be available in the coming months.


Peter

Deek

unread,
Jul 30, 2026, 12:04:45 PMJul 30
to A gathering place for the Open Rail Data community
Peter, 

many thanks. 

Derek
Reply all
Reply to author
Forward
0 new messages