OpenDataVisualizer/Schaad.OpenData.Vehicles/Storage/VehicleSnapshot.cs
Claudio Schaad 81c3661687 Add Thurgau vehicle stock map
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>
2026-11-06 22:41:47 +01:00

16 lines
555 B
C#

using Schaad.OpenData.Vehicles.Models;
namespace Schaad.OpenData.Vehicles.Storage;
public sealed record VehicleSnapshot(
IReadOnlyList<StockEntry> Stock,
IReadOnlyList<PopulationEntry> Population,
IReadOnlyList<MunicipalityOutline> Outlines,
DatasetVersion? StockVersion,
DatasetVersion? PopulationVersion,
DateTimeOffset? LastRefresh)
{
public static readonly VehicleSnapshot Empty = new([], [], [], null, null, null);
public IReadOnlyList<int> Years { get; } = Stock.Select(e => e.Year).Distinct().Order().ToList();
}