
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Python package to quickly and easily get public transport access node data from the UK's NaPTAN API.
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)
The latest release can be installed with:
$ pip install naptan
All documentation, tutorials, API reference etc can be found at the package's site: https://mullinscr.github.io/naptan/
MIT. See LICENSE.txt.
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:
FAQs
Python package to quickly and easily get public transport access node data from the UK's NaPTAN API.
We found that naptan demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.