6

I've been trying to find out how many trains stop at each UK train station, each day (or year, month, doesn't really matter but the more specific the better). But can't find any good sources. Could also derive it from time-tables, but can't seem to find any good time tables in .csv or .xlsx...

Anyone can help me out? Would be absolutely amazing!!!!

3

You can find the complete timetable in PDF through Network Rail. You might be able to scrape the required information from it.

Otherwise, perhaps you can contact Network Rail directly to see if the information you're asking for is available. In Sweden, tydal.nu has had success in scraping information from a similar Swedish PDF timetable, so perhaps the people there have some code they are willing to share.

2

If you are interested in calculating train frequency at London tube, overground and some national rail stations, you can use the Timetable API in the Transport for London Unified API. Timetables are returned in XML or JSON. For example:

https://tfl.gov.uk/tube/timetable/northern?fromId=940GZZLUCTN

You can find out more about the Transport for London Unified API by reading the blog articles I have written there.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.