Skip to content

About

Data and scripts for converting and manipulating public mobile library data

Topics

Resources

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Mobile libraries data

Validate mobile library datasets License: MIT

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.

The data at a glance

  • 8,284 stops across the UK
  • 1,267 routes on regular visiting cycles
  • 103 mobile library vehicles operated by 50 library services
  • 61,255 km (38,062 miles) of scheduled road routes across 7,016 trip legs
  • 10 minutes (8.7 km) average driving time between stops
  • Over 90% of stop coordinates mapped to an exact building, parking space, or postcode

Published datasets

  • data/uk_mobile_library_stops.csv and .geojson: All UK mobile library stops combined with scheduled arrival and departure times, recurrence frequencies, and coordinates.
  • data/uk_mobile_library_routes.csv and .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 50 active local authorities.

Getting started

What you need

  • Python 3.10 or later installed on your computer.

How to install

git clone https://github.com/librarieshacked/mobilelibraries-data.git
cd mobilelibraries-data
pip install -r requirements.txt

Quick commands

  • 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.

Documentation

More information is available in these guides:

Built with

Authors

See the list of contributors who have helped with this project.

License

Acknowledgments

About

Data and scripts for converting and manipulating public mobile library data

Topics

Resources

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages