- Thurgau hourly traffic counts (data.tg.ch) refreshed every 6 h into a per-day JSON cache - Road geometry per station direction from swisstopo swissTLM3D; roundabout arms run outward from the roundabout centre - Leaflet map with animated vehicles by class, time controls and base map switcher (grey, colour, aerial) - Station panel with per-class counts and Chart.js charts - Start page with map tiles; traffic map at /verkehr/thurgau - Dockerfile and docker-compose, xUnit tests 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>
63 lines
1.5 KiB
C#
63 lines
1.5 KiB
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Schaad.OpenData.Traffic.Source;
|
|
|
|
public sealed class ThurgauTrafficRecord
|
|
{
|
|
[JsonPropertyName("code")]
|
|
public int Code { get; init; }
|
|
|
|
[JsonPropertyName("name")]
|
|
public string? Name { get; init; }
|
|
|
|
[JsonPropertyName("gemeinde")]
|
|
public string? Municipality { get; init; }
|
|
|
|
[JsonPropertyName("adresse")]
|
|
public string? Address { get; init; }
|
|
|
|
[JsonPropertyName("strasse")]
|
|
public string? Road { get; init; }
|
|
|
|
[JsonPropertyName("richtung")]
|
|
public string? Direction { get; init; }
|
|
|
|
[JsonPropertyName("datum")]
|
|
public string? Date { get; init; }
|
|
|
|
[JsonPropertyName("stunde")]
|
|
public int Hour { get; init; }
|
|
|
|
[JsonPropertyName("bus")]
|
|
public int? Bus { get; init; }
|
|
|
|
[JsonPropertyName("mr")]
|
|
public int? Motorcycle { get; init; }
|
|
|
|
[JsonPropertyName("pw")]
|
|
public int? Car { get; init; }
|
|
|
|
[JsonPropertyName("pw0")]
|
|
public int? CarWithTrailer { get; init; }
|
|
|
|
[JsonPropertyName("lief")]
|
|
public int? Van { get; init; }
|
|
|
|
[JsonPropertyName("lief0")]
|
|
public int? VanWithTrailer { get; init; }
|
|
|
|
[JsonPropertyName("lief_aufl")]
|
|
public int? VanWithSemiTrailer { get; init; }
|
|
|
|
[JsonPropertyName("lw")]
|
|
public int? Truck { get; init; }
|
|
|
|
[JsonPropertyName("lw0")]
|
|
public int? TruckWithTrailer { get; init; }
|
|
|
|
[JsonPropertyName("sattelzug")]
|
|
public int? SemiTrailerTruck { get; init; }
|
|
|
|
[JsonPropertyName("koordinaten")]
|
|
public ThurgauCoordinates? Coordinates { get; init; }
|
|
}
|