GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Vizzuality/3-30-300-eu-capitals: How green is your capital? The 3-30-300 rule (3 trees in view, 30% canopy, a park within 300 m) checked for every home in the 27 EU capitals.

BranchesTags
Open more actions menu

Latest commit

 

History

35 Commits
35 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
client
client
 
 
data-processing
data-processing
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

3-30-300 in the EU capitals

How green is your capital? The 3-30-300 rule asks for three things: every home has at least 3 trees in view, every neighbourhood has 30% tree canopy, and every resident lives within 300 m of a park. This site checks the rule for every home in the 27 capitals of the European Union. You can compare the capitals, then zoom into a city to see which rules each building meets, and why.

A street-level map of Södermalm, Stockholm. One building is selected, and lines run from one of its facades to the six trees it sees, so it meets the 3 trees rule.

Run it

The site (client/)

A TanStack Start application (React, deck.gl), built and served with Nitro. It runs on Node.js 24 and pnpm 12, at the exact versions in client/.nvmrc and client/package.json.

cd client
nvm use        # Node.js from .nvmrc
pnpm install
pnpm dev       # http://localhost:3000

By default the site uses a small stand-in release in tests/fixtures/release/: Stockholm's real figures, and placeholders for the 26 other capitals. To use a release written by the pipeline, set VITE_DATA_RELEASE (its name) and DATA_RELEASE_DIR (its folder) in your shell.

Other commands:

  • pnpm build, then pnpm start: the production server.
  • pnpm test:unit, pnpm test:a11y, pnpm test:e2e: the tests.

The deployed site reads the release from a private storage bucket, on the server only.

The data pipeline (data-processing/)

The pipeline computes each capital's layers and writes a data release: PMTiles archives and JSON files. It uses Python 3.13 with uv, Kedro and just.

cd data-processing
uv sync
uv run just install-tippecanoe
uv run just run stockholm       # one capital
uv run just run-all             # the 27 capitals, then the ranking and the Home map
uv run just check 2026-10-all   # checks a release folder

The largest capitals need about 13 GB of memory.

Licence

The code is under the MIT licence, Copyright (c) 2026 Vizzuality.

The licence covers the code only. Each data source keeps its own licence:

  • OpenStreetMap and Overture Maps: ODbL. The data derived from them is published under the ODbL.
  • The Meta and WRI canopy height map, and JRC GHS-POP: CC BY 4.0.
  • Natural Earth: public domain.
  • Wikidata: CC0.

About

How green is your capital? The 3-30-300 rule (3 trees in view, 30% canopy, a park within 300 m) checked for every home in the 27 EU capitals.

Topics

3-30-300deck-gleugreen-spacekedroopenstreetmappmtilesurban-greening

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.