Skip to content
/ dotvgn Public

A .NET integration of the VGN (Verkehrsverbund Großraum Nürnberg) API for accessing station and departure data.

License

Notifications You must be signed in to change notification settings

rlvelte/dotvgn

Repository files navigation

DotVGN - .NET Client for VAG/VGN API

NuGet

Lightweight .NET client for the VGN/VAG public transport API.

Important

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>

About

A .NET integration of the VGN (Verkehrsverbund Großraum Nürnberg) API for accessing station and departure data.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages