GithubHelp home page GithubHelp logo

mullinscr / naptan Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 3.09 MB

Get and map NaPTAN data quickly and easily.

Home Page: https://mullinscr.github.io/naptan/

License: MIT License

Python 100.00%
atco bods bus dft public python transport naptan

naptan's Introduction

naptan: a python package

Get, view, and map NaPTAN data.


The package's functions return the data from the NaPTAN API as a pandas.DataFrame. This allows the data to be easily filtered, queried and manipulated. Once you have the data, you can export the data as a geoJSON, or view it via an interactive map.

"""
Example code to view all the NaPTAN stops within Leicester and
Leicestershire on a map in the browser.
"""
import naptan

# get data as a dataframe
# 260 is Leicestershire and 269 is Leicester
leics_stops = naptan.get_area_stops(['260', '269'])

# View the stops in the browser on an interactive map.
naptan.view_map(leics_stops)

coalville-example

Installation

The latest release can be installed with:

$ pip install naptan

Documentation

All documentation, tutorials, API reference etc can be found at the package's site: https://mullinscr.github.io/naptan/

License

MIT. See LICENSE.txt.

NaPTAN dataset

National public transport access nodes (NaPTAN) is a national dataset of all public transport 'stops' in England, Scotland and Wales. Bus stops form the vast majority of the dataset; but there is data on tram, metro, tube, rail, ferry and air services too.

Included in the dataset, along with the unique identifiers, is common name, locality, stop type, bearing of onward travel, and status (active, inactive or pending).

More information can be found on the UK government's website:

naptan's People

Contributors

mullinscr avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

naptan's Issues

Spatial export and view

Users should be able to export the returned stops so that they can be easily viewed in a variety of GIS software / packages (.geojson?). It would also be nice for users to be able to view this export easily (in the browser?) to get a sense of the stops' geographic distribution.

GEOjson indent level

To improve (human) readability of the GEOjson files generated, they should be indented.

Lookup table for ATCO areas should be available

Users of the package should be easily able to get the lookup areas for the ATCO areas and their respective code number -e.g. Leicestershire = '260'.

This should at least be available from the README.md, perhaps even within the package itself.

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.