I heard Saul Griffith say recently that if you covered all the car parks in the USA with solar panels you would supply way more than the national energy requirements (I can’t find the actual reference, but just go and watch his talks and read everything he’s written).
I claimed this might translate to the UK. But does it?
The solar part is easy enough. If we electrify everything and want to remove carbon based generation, we need to build 300TWh of renewables. For the sake of argument let’s do it all in solar (yes, i know, but ignore clouds and nights for now. It’s a spherical cow).
Now according to CAT to generate 800kWh (per year) we’d need ~1kW of panels, which might be 8m², or 125kWh/m².
so 300TWh / 125kWh = 24*10⁸ m², or 2400 km²
Right. Does the UK have 2400 km² of parking?
Turns out that openstreetmap can give a (probably wrong) answer. Below I present a cleaned up route I hacked out to get there. The following politely elides the many, many detours and dead ends along the way.
pip install geopandas descartes ipykernel matplotlib
python -m ipykernel install --user --name=e
# get the great-britain-latest.osm.bpf file from https://download.geofabrik.de/europe/great-britain.html
brew install osmosis
osmosis --read-pbf great-britain-latest.osm.pbf --tf accept-ways amenity=parking --tf reject-relations --used-node --way-key-value keyValueList="amenity.parking" --write-xml gb-parking.osm
npm install -g osmtogeojson
osmtogeojson gb-parking.osm > gb-parking.json
And then in the notebook:
p = geopandas.read_file("gb-parking.json")
p = p[p['id'].str[:4] == 'way/'] # remove stuff we don't need
And wait another while for my poor laptop to warm the room. No one ever accused python of being fast.
Now, check we have something. This should draw all the parking areas in the UK.
So something, but it’s a bit hard to see so let’s try plotting where they are with big blobs
p['centroids'] = p.centroid
p = p.set_geometry('centroids')
p = p.set_geometry('borders') # reset geometry
Now the geometry we have doesn’t give us the correct units (we want m²) so change to something else, then add all the areas up and convert to km²
sum(cart.area) / 10**6
Tada! 🎉. So apparently no! At least from the crowdsourced OSM data. We’d have to use more than just car parks 😢.