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>
16 lines
555 B
C#
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();
|
|
}
|