Visualization for opendata.swiss
The app will show several maps and datasets, so it now opens on a start page with one large tile per map instead of the traffic map. - Routing with react-router-dom: "/" is the start page, the Thurgau traffic map moved to "/verkehr/thurgau" (pages/TrafficThurgauPage) - Map registry in src/maps.ts drives the tiles (title, region, description, tags, source, preview image) - SVG preview illustration for the traffic map tile - Traffic map header links back to the start page; page titles set per page Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .claude | ||
| client | ||
| Schaad.OpenData.Server | ||
| Schaad.OpenData.Tests | ||
| Schaad.OpenData.Traffic | ||
| .dockerignore | ||
| .gitignore | ||
| CLAUDE.md | ||
| Directory.Build.props | ||
| Directory.Packages.props | ||
| docker-compose.yml | ||
| Dockerfile | ||
| LICENSE | ||
| OpenDataVisualizer.sln | ||
| README.md | ||
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.
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.
For development see CLAUDE.md.