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

Adjacent stations data

Status
Not open for further replies.

HangerFlap

New Member
Joined
13 Feb 2025
Messages
1
Location
Aberystwyth
Dear all,
I am looking to make a JSON file of neighbouring stations for all UK railway stations, just like here at the bottom of the page: "https://www.railwaydata.co.uk/stations/overview/?TLC=AGV". Does anyone know how I could get this? railwaydata.co.uk doesn't provide any downloads, and you can't scrape the pages. I've got a lot of data from Wikidata, e.g. here "https://www.wikidata.org/wiki/Q683063" has adjacent station information but it does not apply to all. Any help appreciated.
 
Sponsor Post - registered members do not see these adverts; click here to register, or click here to log in
R

RailUK Forums

takno

Verified Rep - Traksy
Joined
9 Jul 2016
Messages
6,578
Dear all,
I am looking to make a JSON file of neighbouring stations for all UK railway stations, just like here at the bottom of the page: "https://www.railwaydata.co.uk/stations/overview/?TLC=AGV". Does anyone know how I could get this? railwaydata.co.uk doesn't provide any downloads, and you can't scrape the pages. I've got a lot of data from Wikidata, e.g. here "https://www.wikidata.org/wiki/Q683063" has adjacent station information but it does not apply to all. Any help appreciated.
You could probably parse out schedule data to do it, but to be honest it doesn't strike me as more than a couple of hours work to do it manually. You could potentially spend more time on building code than getting the solution.
 
Status
Not open for further replies.

Top