- One shared Leaflet map (MapHost) with the traffic, watercraft and vehicle maps turned into layer components that attach to it and clean up on unmount; each layer adds its own data credit - Data loading and per-dataset state moved into hooks used by both the single pages and the combined page - /karte/thurgau: layer panel with on/off switch, controls and legend per dataset, shared year controls for the yearly layers, traffic day/time controls, layers and year in the URL - Side panel shows the selected municipality, harbour or station, or an overview of all active layers; the municipality panel lists the counting stations and harbours in that municipality - Start page shows only the combined map; single maps are linked from the layer cards - Docs: combined map in docs/datasets.md and CLAUDE.md Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .claude | ||
| client | ||
| docs | ||
| Schaad.OpenData.Server | ||
| Schaad.OpenData.Tests | ||
| Schaad.OpenData.Traffic | ||
| Schaad.OpenData.Vehicles | ||
| Schaad.OpenData.Watercraft | ||
| .dockerignore | ||
| .gitignore | ||
| CLAUDE.md | ||
| Directory.Build.props | ||
| Directory.Packages.props | ||
| docker-compose.yml | ||
| Dockerfile | ||
| LICENSE | ||
| OpenDataVisualizer.sln | ||
| README.md | ||
| run.ps1 | ||
OpenDataVisualizer
Visualization for opendata.swiss.
Traffic in the canton of Thurgau
The first visualization shows the hourly traffic counts of the canton of Thurgau (Verkehrszähldaten motorisierter Individualverkehr nach Fahrzeugklassen, CC0):
- animated map: vehicles drive along the real road in both directions of each counting station, the dot density follows the hourly count and the colour the vehicle class
- time controls to play through a day or jump to any hour
- station panel with the counts per vehicle class, hourly values, average weekday/weekend profile, daily totals and class distribution
Road geometry comes from swisstopo (swissTLM3D), the base map from swisstopo as well.
Watercraft in the canton of Thurgau
The second visualization shows the boats registered with the Thurgau navigation authority (Bestand der bei der Schifffahrtskontrolle des Kantons Thurgau immatrikulierten Wasserfahrzeuge, CC BY 4.0), all yearly datasets from 2021 on:
- map with one donut per harbour location on Bodensee, Untersee and Rhine, sized by the number of boats and split by type, propulsion, fuel, emission standard or special use; categories can be hidden via the legend
- year controls to compare or play through the years
- panel for the canton or a location: change against the previous year, median length and power, share requiring a licence, category table, trend over all years, length and power distribution
Road vehicles in the canton of Thurgau
The third visualization shows all road vehicles registered in Thurgau per municipality (Strassenfahrzeugbestand nach Fahrzeuggruppe, Fahrzeugart, Marke und Politischer Gemeinde ab 2023, CC BY 4.0), combined with the resident population per municipality from the Thurgau statistics office:
- choropleth map of the 80 municipalities (outlines from swisstopo swissBOUNDARIES3D): vehicles per 1000 inhabitants for all vehicles or one vehicle group, or the share of a car brand among all passenger cars
- year controls to compare or play through the years, with a colour scale that stays fixed across years
- panel for the canton or a municipality: change against the previous year, population, density and rank, vehicle groups, most common car brands and vehicle types, trend over all years
Run
docker compose up --build
Then open http://localhost:8080. On the first start the app downloads the data from data.tg.ch and builds the road geometry (one to two minutes); it is cached in the opendatavisualizer-data volume and refreshed every six hours. Since data.tg.ch only serves the last two weeks, the cache keeps growing over time.
Without Docker (needs Node.js and the .NET 10 SDK), build the client and start the server with
.
un.ps1
and open http://localhost:5080. -SkipClient starts the server without rebuilding the client.
Where each dataset comes from and how it is downloaded and refreshed is described in docs/datasets.md, with one page per dataset in docs/datasets/.
For development see CLAUDE.md.