• 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!

UK rail speed league - new site

fishwomp

Established Member
Joined
5 Jan 2020
Messages
1,349
Location
milton keynes
Bit more fun with Claude Code this morning


It'll show the fastest end-to-end services stopping at your station, or across the whole network. Ranked by either crow-flies or route mile distance. It'll also show slowest/fastest route, or fastest/slowest legs (all ranked by fastest service). It also lets you filter operator.

1791027867096.png
 
Sponsor Post - registered members do not see these adverts; click here to register, or click here to log in
R

RailUK Forums

trainmania100

Established Member
Joined
8 Nov 2015
Messages
3,040
Location
Newhaven
Interesting to see the distances of the train journeys in miles. Does this use the Data wharf product on rail data marketplace?
 

fishwomp

Established Member
Joined
5 Jan 2020
Messages
1,349
Location
milton keynes
Interesting to see the distances of the train journeys in miles. Does this use the Data wharf product on rail data marketplace?
It's using NR's datafeeds - openraildata etc - distances between TIPLOCs. Due to rounding, it's not always 100% accurate when summed across a long route. That data is in miles and chains.
 

trainmania100

Established Member
Joined
8 Nov 2015
Messages
3,040
Location
Newhaven
It's using NR's datafeeds - openraildata etc - distances between TIPLOCs. Due to rounding, it's not always 100% accurate when summed across a long route. That data is in miles and chains.
Didn't think there was any open data with mileages in it, I know the passenger consists has some form of mileage. Then again I haven't really looked hard.

I'm guessing the reason Brighton to Seaford (17 miles) is showing 23mph is because of the 10 minute wait at Lewes. Its a lot faster than that and it gets up to 70 after fAlmer
 

fishwomp

Established Member
Joined
5 Jan 2020
Messages
1,349
Location
milton keynes
I think there might be something in the fares datasets for this. There's also the network links data which is part of BPLAN, available on RDM from either OpenTrainTimes or Network Rail.
Yes, that's part of how this constructs it. The code is open source, feel free to just grab or get Claude to write again.
 

Ian Umpleby

Member
Joined
30 Mar 2019
Messages
19
Yes, that's part of how this constructs it. The code is open source, feel free to just grab or get Claude to write again.
Just done one random check. Kings Cross to Newcastle mileage (9 car) is 268.5 miles in the Railway Performance Society Distance Charts so those averages are higher.
----------------------------------------------
 

fishwomp

Established Member
Joined
5 Jan 2020
Messages
1,349
Location
milton keynes
Just done one random check. Kings Cross to Newcastle mileage (9 car) is 268.5 miles in the Railway Performance Society Distance Charts so those averages are higher.
----------------------------------------------
Yeah, it tends to be within 1 or 2% - which for what we're doing here is OK. It has 267.3 to 268.0 depending on direction(!).

== Doublepost prevention - post automatically merged: ==

Yeah, it tends to be within 1 or 2% - which for what we're doing here is OK. It has 267.3 to 268.0 depending on direction(!).
I've just had it rebuild using different rules:
1. Between timing points: the shortest track distance from one timing point to the next.
2. The timing points themselves: each station or junction covers some length of track (its platforms and approaches). That length is added in full when a train passes through, and half of it at each end of a journey.

now it's a bit better - just slightly out - at 268.1 for KGX-NCL compared to that 268.5. Buffer stop to buffer stop vs mid-TIPLOC to mid-TIPLOC, platform position maybe: I don't know - but it's only (Olympic) spitting distance ;)
 
Last edited:

Top