OpenDataVisualizer/Schaad.OpenData.Vehicles/Storage/VehicleSnapshot.cs
Claudio Schaad 688775e742 Add Thurgau vehicle stock map (#3)
Choropleth of the 80 Thurgau municipalities from the road vehicle stock dataset (djs-stv-17), with population from sk-stat-56 and outlines from swisstopo. Also fixes the broken ENV line in the Dockerfile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claudio Schaad <c.schaad@pog.ch>
Co-committed-by: Claudio Schaad <c.schaad@pog.ch>
2026-11-06 21:43:23 +00: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();
}