naptan: a python package¶
Get, view, and map public transport access (NaPTAN) data.
Data is returned from the UK's 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 it as a geoJSON, or view it via an interactive map.
Copied!
import naptan
leics_stops = naptan.get_area_stops(['260'])
naptan.create_map(leics_stops)
import naptan
leics_stops = naptan.get_area_stops(['260'])
naptan.create_map(leics_stops)
Make this Notebook Trusted to load map: File -> Trust Notebook