DotVgn 1.4.0
dotnet add package DotVgn --version 1.4.0
NuGet\Install-Package DotVgn -Version 1.4.0
<PackageReference Include="DotVgn" Version="1.4.0" />
<PackageVersion Include="DotVgn" Version="1.4.0" />
<PackageReference Include="DotVgn" />
paket add DotVgn --version 1.4.0
#r "nuget: DotVgn, 1.4.0"
#:package DotVgn@1.4.0
#addin nuget:?package=DotVgn&version=1.4.0
#tool nuget:?package=DotVgn&version=1.4.0
<img src="https://i.imgur.com/hwplHVj.png" width=200>
DotVGN - .NET Client for VAG/VGN API
Lightweight .NET client for the VGN/VAG public transport API.
This project originated from a personal application. Development follows my own needs rather than a fixed roadmap. Contributions and forks are welcome.
Table of Contents
Install
The easiest way to get started is to install the package from NuGet or GitHub Packages:
dotnet add package dotvgn
Usage
Dependency Injection
The package integrate seamlessly with ServiceCollection.
// Provide another base endpoint
services.AddDotVgnClient(opt => {
opt.BaseEndpoint = new Uri(...) // Optional
});
Manual Initialization
Create client instances directly without dependency injection:
// No arguments to use defaults
var client = new VgnClient();
Samples
Departure Monitor
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>
<img src="https://i.imgur.com/3gw1q8Q.png" width=500>
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.Extensions.Http (>= 10.0.1)
- Microsoft.Extensions.Options (>= 10.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.4.0 | 105 | 1/23/2026 |