Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1023 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 1023 Bytes

Bus Routes

This project takes the bus route information from Traveline and merges it with Naptan information (e.g. lat/long). The information is then displayed on a Leaflet.js map.

View the map.

Data Sources

The data comes from Naptan: http://data.gov.uk/dataset/naptan Traveline: https://gds.blog.gov.uk/2014/10/03/new-paths-opened-as-transport-direct-closes-down/ (also see developer pages of traveline site).

This project contains three aspects: data conversion, data merging and mapping.

traveline.py

This python script parses the Traveline xml files and turns them into CSV.

Traveline Data Merge Notebook

This ipython notebook merges together Traveline data with Naptan data to produce CSV files that can be shown in a map.

index.html

This page displays the bus route info. It loads the CSV data via D3, then uses Leaflet.js to draw the information to a map.