- data-pipeline: hourly NDW snapshot job (occupancy + status) + GitHub Action; per-gemeente day files, current-status, daily-average rollup. - webapp: usage-over-day chart in detail panel; fresh per-gemeente status colours; national analysis choropleth (LayerSwitcher) + gemeente scorecard with demand (peer-model), siting priority, congestion and live/potential net-impact scenario. - analysis/ (Python): golden dataset (CBS Kerncijfers + chargers) -> derived metrics + models (demand, siting, congestion, municipal percentiles). - UX: InfoTip tooltips throughout, expanded methodology modal, interactive guided tour (spotlight + blur) that drives the app to example screens. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
28 lines
1.3 KiB
Markdown
28 lines
1.3 KiB
Markdown
# Laadpalenviewer — analysis (golden dataset)
|
|
|
|
Python layer that integrates open Dutch datasets into a "golden dataset" and
|
|
exports derived map layers consumed by the webapp. Phase 1 works at **gemeente
|
|
grain**; buurt/PC4 grain and more sources (BAG/BGT, NDW traffic, grid) follow.
|
|
|
|
## Sources (open tier)
|
|
- **CBS Kerncijfers wijken en buurten** `85984NED` (CC-BY) — demographics, income,
|
|
urbanisation, car ownership. Field keys live in `src/ingest/cbs.py`.
|
|
- **Charger supply/usage** — our own `webapp/public/data` (municipalities.json,
|
|
crop-out GeoJSONs, hourly snapshots).
|
|
- **PDOK CBS Gebiedsindelingen** — gemeente polygons for the choropleth.
|
|
|
|
## Run
|
|
```bash
|
|
cd analysis
|
|
python3 -m venv .venv && ./.venv/bin/pip install -r requirements.txt
|
|
./.venv/bin/python -m src.main # uses caches in .cache/
|
|
./.venv/bin/python -m src.main --refresh # re-fetch CBS/PDOK
|
|
```
|
|
Outputs:
|
|
- `data/gold_gemeente.{csv,parquet}` — the golden dataset (gitignored).
|
|
- `webapp/public/data/derived/gemeente-metrics.geojson` — choropleth layer (committed).
|
|
- `webapp/public/data/derived/metrics-meta.json` — metric list for the viewer.
|
|
|
|
The viewer's **Analyse (per gemeente)** switcher (national view) renders any metric
|
|
as a choropleth. Attribution: data © CBS (CC-BY), PDOK, NDW.
|