This project collects and publishes open data about UK mobile library services. It brings together timetables, stop locations, and driving routes across England, Scotland, Wales, and Northern Ireland into clean, consistent files.
It is part of the Libraries Hacked project. For background and analysis, see the Mobile Library Data Project.
- 8,192 stops across the UK
- 1,255 routes on regular visiting cycles
- 101 mobile library vehicles operated by 48 library services
- 61,320 km (38,100 miles) of scheduled road routes across 6,937 trip legs
- 10 minutes (8.8 km) average driving time between stops
- Over 90% of stop coordinates mapped to an exact building, parking space, or postcode
data/uk_mobile_library_stops.csvand.geojson: All UK mobile library stops combined with scheduled arrival and departure times, recurrence frequencies, and coordinates.data/uk_mobile_library_routes.csvand.geojson: Nationwide driving paths and road trip legs between consecutive stops.data/uk_mobile_library_stops_accuracy.csv: Quality ratings and estimated precision radiuses for every stop pin.data/summary.json: Up-to-date counts, travel distances, and accuracy breakdowns by authority and for the whole UK.data/<council>.csv: Individual datasets for each of the 48 active local authorities.
- Python 3.10 or later installed on your computer.
git clone https://github.com/librarieshacked/mobilelibraries-data.git
cd mobilelibraries-data
pip install -r requirements.txt- Check the data:
python scripts/validate.py - Combine all UK stops:
python scripts/combine.py - Work out driving routes:
python scripts/routing.py --all - Update a single council:
python scripts/<council_name>.py
For more details, see how to run the scripts.
More information is available in these guides:
- Data schema and visit frequency - What each column in the files means and how visit cycles are written.
- Location and map coordinates - How stop locations are found, checked, and kept accurate.
- Driving routes between stops - How road routes and travel times are worked out.
- List of all UK library services - The master list of all 216 UK library authorities and their mobile status.
- How to run the scripts - How to update council data, combine stops, and run the route tools.
- Data checking and quality - How we test that files are complete and correctly formatted.
- How to contribute - How to help by adding a council or updating a timetable.
- Python 3 - Code for collecting and cleaning data
- Frictionless Data - Data standards and automated checking
- Postcodes.io - Free UK postcode location service
- OpenStreetMap and OSRM - Map data and road routing
- OpenRouteService - Lorry-friendly road routing
- Libraries Hacked - Libraries Hacked
See the list of contributors who have helped with this project.
- Code: Licensed under the MIT License.
- Data: Sourced and adapted from council publications under the Open Government Licence v3.0 where applicable.
- Council library services and dedicated mobile library drivers and staff
- OpenStreetMap contributors
- Ordnance Survey OpenData