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>
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();
|
|
}
|