Skip to content
A repository containing data, including geodata, for UK parliamentary constituencies
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Constituency Cards

An open data experiment involving MP portraits, electoral data, population data, geodata and a few other bits and bobs.

Click here to go straight to the maps. Read more about how I did this on my blog

This is a spare time project that I'd been meaning to put together for a while, but hadn't got round to. However, with a general election potentially looming, I thought I'd try to get it done over a few evenings and weekends. My intention was to put together a set of virtual 'constituency cards' - one for each Westminster constituency - that provided some basic information on each area, its MP and the last general election (or by-election). My underlying goal was to see if it was possible to bring together multiple open data sources, including the new official MP portraits, and create some useful information out of it all. The files I link to in the images folder are the result. The intention is that they are used as a set of cards to be viewed on screen - that's why they're sized using a 16:9 ratio. Software? I did it all in QGIS.

Read more about this

If you want to read more about this little project, including data, software, styling and all that, then head over to my blog post on it, where I have explained it all in detail. But remember, I have not done this in any official capacity - it's really just an open data experiment to see how much useful information I could extract from a mix of raw data sources. If you're looking for more in-depth information on each constituency, in an interactive format, then I recommend you look at the Constituency Dashboard tool developed by the team at the House of Commons Library.

An example


The MP photos were mostly sourced from the official portraits that were published by the Parlimanetary Digital Service which you can find on Wikimedia Commons. These photos were released under a Creative Commons licence and their existence is one of the main motivations for me doing this - I think they're great and wanted to find a project I could integrate them into. The official MP portraits, unfortunately, only cover about 90% of MPs, but I didn't want to miss anyone out so I extracted the rest from public sources, including Wikipedia and Twitter. I think having the MP portraits adds a lot to the images and helps humanise them.

The underlying electoral data comes from the House of Commons Library - at the bottom of the linked page - and also from mySociety who, by the way, do amazing work more generally. The underlying GIS data comes from ONS and Ordnance Survey. The information on distance to Parliament and area of each constituency are figures I calculated myself in QGIS.

For the colours, these are mostly the same as the ones the BBC use. However, for Independent MPs (who I have found difficult to keep track of, sorry!), I have used a pinkish colour that others have adopted, and for the Speaker I used the blue from the Parliamentary Digital Service blog.

Alasdair Rae, August 2019

@undertheraedar - please get in touch if you spot any errors.

You can’t perform that action at this time.