Giter Club home page Giter Club logo

uk-railway-stations's Introduction

A Database of UK Train Stations

This repository contains several files listing all UK railway stations.

Stations listed are only those that can be queried through the National Rail Darwin API.

The dataset was originally from Trainline EU's repository. The sources they used are listed on their GitHub repository.

Contents

Using the dataset

Git submodules

You can clone this Git repository into your own as a 'submodule'. Learn more about Git submodules.

git clone https://github.com/davwheat/uk-railway-stations

NPM

You can also pull the dataset from the NPM registry. The default import is the stations.json file, but you can also import the csv file.

npm i uk-railway-stations
yarn add uk-railway stations
import StationsListJSON from "uk-railway-stations"
import StationsListCSV from "uk-railway-stations/stations.csv"

Attribution

Attribution must be provided to myself, Trainline EU, and their sources for this dataset.

This is a limitation of the Open Database License (ODbL). For more info, see LICENSE.

Exceptions in data

Some notable exceptions exist. These are stations/networks that are not included within the data.

  • Manchester Metrolink

Fields

Name Description
stationName Name of the station as it is locally known.
lat Longitude coordinates as decimal value.
long Latitude coordinates as decimal value.
crsCode The station's CRS code. Unique to each station.
iataAirportCode The IATA code for the airport the station is attached to, if there is one.

Data files

CSV

The CSV file contains a header row, and the columns match the list of fields above in that order.

JSON

The JSON file provided is an array of station objects.

Contributing

When making changes, you should only perform changes to stations.csv. When changes are merged into the main branch, the JSON file with be automatically re-generated from this CSV. This single source of truth means that edits to the JSON file will not be kept.

Licence

The file stations.csv is distributed under the Open Database License (ODbL) licence, see LICENCE.txt. In short, any modification to this data source must be published.

uk-railway-stations's People

Contributors

alecks avatar davwheat avatar itsmeimtom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

uk-railway-stations's Issues

Reston, Inverness Airport

This is great work, thanks! This is the best UK-wide dataset I've seen, in fact it may be the only one because I have lots of GB versions (e.g. via ORR Table 1410 or OS Zoomstack).

I can't see Reston or Inverness Airport in here - is there any chance you could add them?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.