List of all railway stations in Britain with locations

442 views
Skip to first unread message

Lawrence Schmid

unread,
May 13, 2021, 10:59:34 AM5/13/21
to A gathering place for the Open Rail Data community
Hi,

I'm new to this group. I am interested in using open rail data for an MSc Software Engineering geographical information system project I am working on.

The first thing I need to do is get a list of all railway stations in Britain with latitude / longitude locations or postcodes and station name abreviations.

I found this question on StackExchange which mentions a dataset from the Guardian newspaper which can be found here or the National Public Transport Access Nodes (NaPTAN) dataset here. Both resources don't seem to have been updated recently.

Is there an API available which returns all railway stations in Britain? I had a look at the Network Rail data feeds quickly but it doesn't mention that information and looks difficult to use (which is a separate question I will post here another time).

I'm considering scraping the data from the Wikipedia page entries here (I have my own reasons for wanting to do that).

Any advice about where the best place to source this data would be appreciated?

Lawrence

 

Bryce McKinlay

unread,
May 13, 2021, 11:27:40 AM5/13/21
to A gathering place for the Open Rail Data community
Hi Lawrence.

Despite appearances on the data.gov.uk page, NaPTAN is constantly updated - daily, I think. The linked GTFS and "Zipped CSV format" files were last updated at midnight this morning, not in 2014 as it suggests!


Searching for StopType="RLY" will give you all railway stations. "RSE" will give you station entrances, etc.

Bryce


--
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/11c7b551-3ddc-4bb7-92ca-40831c85c519n%40googlegroups.com.

Lawrence Schmid

unread,
May 13, 2021, 11:59:30 AM5/13/21
to A gathering place for the Open Rail Data community
Thanks Bryce. That is some good information. I was wondering how to interpret the CSV files. I will try and take a look at that and be back in touch. The data.gov.uk page does seem to be inconsistent with missing data sources and incorrect information.

SimonAlexander

unread,
May 18, 2021, 8:55:05 AM5/18/21
to A gathering place for the Open Rail Data community
If you want to further expand your location dataset, you can get quite a good mapping of CRS/Name to Location (lat/long or OS Coordinates) from  Wikidata Query Service - but obviously it's all open data so should probably only really be used where the NaPTAN data is missing/wrong.

David Wheatley

unread,
May 31, 2021, 6:48:33 PM5/31/21
to A gathering place for the Open Rail Data community
Bit late, but I made a GitHub repository with a lot of this data just 3 days before you posted here. Has a JSON and CSV file.

Hope it helps anyone else looking for it: https://github.com/davwheat/uk-railway-stations

It's published to NPM, as well, if you're using it in a JS project.

Lawrence Schmid

unread,
Jun 1, 2021, 5:19:21 AM6/1/21
to A gathering place for the Open Rail Data community
Thanks for posting David. I will try and have a look at your GitHub example. I took a look at your online portfolio website especially impressed with your dot-matrix indicator similator. Your very talented.
Reply all
Reply to author
Forward
0 new messages