SwissTransport.NET offers a .NET Standard library for the Swiss public transport API
To install SwissTransport.NET, run the following command in the Package Manager Console:
To interact with SwissTransport.NET you first need to create a instance of SwissTransportClient using the following code
using SwissTransport;
SwissTransportClient swissTransport = new SwissTransportClient();
Returns the matching locations for the given parameters
public async Task<List<Location>> GetLocations(string locationName)
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)
