This project 'fills' the England, Scotland and Wales revised 2023 Westminster constituencies with circles according to the following parameters:
- The circles' radii are multiples of 1km, with a minimum radius of 1km
- The circles can overlap
- A constituency can have at most 200 circles
The calculated circles can be found here.
The percentage coverage achieved for each constituency can be found here.
A visualisation of the circles calculated and coverage achieved for each constituency can be found here.
The average coverage achieved is 86%.
Vale of Glamorgan is the constituency covered most completely:
Beaconsfield has coverage closest to the average:
Excluding constituencies that have no coverage at all, Southgate and Wood Green has the smallest coverage:
Seven constituencies are small enough and/or awkwardly-shaped enough that they can't even fit any of the smallest 1km radius circles:
- Bermondsey and Old Southwark
- Hackney South and Shoreditch
- Hammersmith and Chiswick
- Holborn and St Pancras
- Islington North
- Islington South and Finsbury
- Queen's Park and Maida Vale
-
Clone the repository
-
Change directory into the respository
-
Install the dependencies, e.g. using Anaconda:
conda env create --file environment.yml
-
Activate the environment:
conda activate bubbles
-
Run
python generate_bubbles.py
, which will:- Download and fetch shapefiles for constituencies into
data/
- Write images showing bubble coverage into
output/constituencies/JPGs
- Write
output/constituencies/bubbles.csv
with one bubble per record - Write
output/constituencies/statistics.csv
with one constituency per record
- Download and fetch shapefiles for constituencies into
-
Run
python app.py
and view http://localhost:5000/
Yes!
The calculated circles for the old constituencies can be found here.
The percentage coverage achieved for each old constituency can be found here.
A visualisation of the circles calculated and coverage achieved for each old constituency can be found here.