Add Thurgau vehicle stock map #3

Merged
clayschaad merged 1 commit from feature/vehicle-stock-thurgau into main 2026-11-06 21:43:24 +00:00
Owner

Summary

New map Fahrzeugbestand Thurgau (/fahrzeuge/thurgau) for the opendata.swiss dataset Strassenfahrzeugbestand nach Fahrzeuggruppe, Fahrzeugart, Marke und Politischer Gemeinde ab 2023 (data.tg.ch djs-stv-17, CC BY 4.0).

  • Choropleth of the 80 municipalities (outlines from swisstopo swissBOUNDARIES3D, cached once)
  • Metric: vehicles per 1000 inhabitants (all or one vehicle group; population from sk-stat-56) or a brand's share of passenger cars
  • Year controls with play, colour scale fixed across years (quantiles over all years)
  • Panel for canton or municipality: change vs. previous year, population, density and rank, vehicle groups, top brands, top vehicle types, trend
  • New library Schaad.OpenData.Vehicles (same pattern as Watercraft), endpoints /api/vehicles/{meta,years,municipalities}, daily refresh that only re-exports datasets whose modified date changed
  • Home tile with preview image, docs in README and CLAUDE.md
  • Fixes the broken ENV line in the Dockerfile (literal instead of a line continuation) and adds Vehicles__DataPath

Testing

  • dotnet test: 79 passed (18 new for client, boundary client, storage, refresher, analysis)
  • npm run typecheck clean
  • Ran the server against live data: 26'270 stock rows, 80 outlines; checked density and brand modes, year switching and municipality selection in the browser

Note: brands with fewer than 5 vehicles per municipality and type are folded into "Andere" by the source, so small brands are undercounted (mentioned in the panel).

🤖 Generated with Claude Code

## Summary New map **Fahrzeugbestand Thurgau** (`/fahrzeuge/thurgau`) for the opendata.swiss dataset [Strassenfahrzeugbestand nach Fahrzeuggruppe, Fahrzeugart, Marke und Politischer Gemeinde ab 2023](https://opendata.swiss/de/dataset/strassenfahrzeugbestand-nach-fahrzeuggruppe-fahrzeugart-marke-und-politischer-gemeinde-ab-2023) (data.tg.ch `djs-stv-17`, CC BY 4.0). - Choropleth of the 80 municipalities (outlines from swisstopo swissBOUNDARIES3D, cached once) - Metric: vehicles per 1000 inhabitants (all or one vehicle group; population from `sk-stat-56`) or a brand's share of passenger cars - Year controls with play, colour scale fixed across years (quantiles over all years) - Panel for canton or municipality: change vs. previous year, population, density and rank, vehicle groups, top brands, top vehicle types, trend - New library `Schaad.OpenData.Vehicles` (same pattern as Watercraft), endpoints `/api/vehicles/{meta,years,municipalities}`, daily refresh that only re-exports datasets whose `modified` date changed - Home tile with preview image, docs in README and CLAUDE.md - Fixes the broken `ENV` line in the Dockerfile (literal ` ` instead of a line continuation) and adds `Vehicles__DataPath` ## Testing - `dotnet test`: 79 passed (18 new for client, boundary client, storage, refresher, analysis) - `npm run typecheck` clean - Ran the server against live data: 26'270 stock rows, 80 outlines; checked density and brand modes, year switching and municipality selection in the browser Note: brands with fewer than 5 vehicles per municipality and type are folded into "Andere" by the source, so small brands are undercounted (mentioned in the panel). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
clayschaad added 1 commit 2026-11-06 21:42:02 +00:00
Choropleth of the 80 Thurgau municipalities from the road vehicle stock
dataset (djs-stv-17): vehicles per 1000 inhabitants by vehicle group or
share of a car brand among passenger cars, with year controls and a
municipality panel. Population comes from sk-stat-56, outlines from
swisstopo swissBOUNDARIES3D.

Also fixes the broken ENV line in the Dockerfile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
clayschaad merged commit 688775e742 into main 2026-11-06 21:43:24 +00:00
clayschaad deleted branch feature/vehicle-stock-thurgau 2026-11-06 21:43:24 +00:00
clayschaad referenced this pull request from a commit 2026-11-06 21:43:25 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: clayschaad/OpenDataVisualizer#3
No description provided.