This UK Department for Transport publich the national public transport access nodes (NaPTAN) dataset with a unique identifier and location of every public transport access point in the UK. These scripts download this data and extract railway station locations in Great Britain.
Station CRS codes cross-referenced against National Rail Enquiries station code list are used to create the CRS-mismatch-report.tsv
containing mismatched locations.
Once the dependencies are met to create the report run:
$ ./prepublish
This will download and create ESRI Shape
files in the shp
directory for all stations locations, as well as a Leaflet
JavaScript visualisation using the this data in a GeoJSON format.
These are environment and project dependencies.
For ease of use manage package python
packages dependencies with a local virtual environment venv
:
$ virtualenv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
$ sudo apt install virtualenv
Uses National Public Transport Access Node (NaPTAN) data under the Open Government Licence Open Street Map data is used under the Open Street Map license