Skip to content

dcordero/SwissTransport.NET

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Swiss Transport API .NET Framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages