DotVgn 1.4.0

dotnet add package DotVgn --version 1.4.0
                    
NuGet\Install-Package DotVgn -Version 1.4.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DotVgn" Version="1.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DotVgn" Version="1.4.0" />
                    
Directory.Packages.props
<PackageReference Include="DotVgn" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DotVgn --version 1.4.0
                    
#r "nuget: DotVgn, 1.4.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package DotVgn@1.4.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DotVgn&version=1.4.0
                    
Install as a Cake Addin
#tool nuget:?package=DotVgn&version=1.4.0
                    
Install as a Cake Tool

<img src="https://i.imgur.com/hwplHVj.png" width=200>

DotVGN - .NET Client for VAG/VGN API

NuGet

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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