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.
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.
This python script parses the Traveline xml files and turns them into CSV.
This ipython notebook merges together Traveline data with Naptan data to produce CSV files that can be shown in a map.
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.