Skip to content
Swiss Transport API .NET Framework
C#
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
SwissTransport-Tests
SwissTransport
.gitignore
LICENSE
README.md
SwissTransport.sln
nuget.png

README.md

SwissTransport.NET

License: MIT NuGet

SwissTransport.NET offers a .NET Standard library for the Swiss public transport API

Installation

To install SwissTransport.NET, run the following command in the Package Manager Console:

Usage

To interact with SwissTransport.NET you first need to create a instance of SwissTransportClient using the following code

using SwissTransport;

SwissTransportClient swissTransport = new SwissTransportClient();

Locations

Returns the matching locations for the given parameters

public async Task<List<Location>> GetLocations(string locationName)

Stationboard

Returns the next connections leaving from a specific location

public async Task<Stationboard> GetStationBoard(string stationName,
                                                string stationId = null,
                                                List<Transportation> transportations = null,
                                                DateTime? dateTime = null,
                                                int? limit = null,
                                                StationboardType? type = null)
You can’t perform that action at this time.