Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Get and map NaPTAN data quickly and easily.

License

NotificationsYou must be signed in to change notification settings

mullinscr/naptan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 andLeicestershire on a map in the browser."""importnaptan# get data as a dataframe# 260 is Leicestershire and 269 is Leicesterleics_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 allpublic transport 'stops' in England, Scotland and Wales. Bus stops form the vastmajority of the dataset; but there is data on tram, metro, tube, rail, ferry andair 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:


[8]ページ先頭

©2009-2025 Movatter.jp