Lightweight .NET client for the VGN/VAG public transport API.
Important
If you are just here to use the departure monitor as a standalone tool on your system, there is also a packaged RPM on the Open Build Service for that.
The easiest way to get started is to install the package from NuGet or GitHub Packages:
dotnet add package DotVgn
The package integrates seamlessly with ServiceCollection.
// Provide another base endpoint
services.AddDotVgnClient(opt => {
opt.BaseEndpoint = new Uri(...) // Optional
});Create client instances directly without dependency injection:
// No arguments to use defaults
var client = new VgnClient();A terminal-based departure board. Shows real-time departures grouped by transport type (U-Bahn, S-Bahn, Tram, Bus, R-Bahn) with delay info and platform numbers. Supports fuzzy station search with interactive selection.
dotnet run --project samples/DotVgn.Samples.Monitor -- <StationName>
