Table of Contents

Interface IStationClient

Namespace
DotBahn.Stations
Assembly
DotBahn.Stations.dll

Client for accessing the 'Deutsche Bahn StaDa'-API

public interface IStationClient

Methods

GetStationsAsync(StationQuery, CancellationToken)

Searches for stations using a query structure

Task<IReadOnlyList<Station>> GetStationsAsync(StationQuery query, CancellationToken ct = default)

Parameters

query StationQuery

The query to specify results with

ct CancellationToken

Token to cancel the request

Returns

Task<IReadOnlyList<Station>>

List of stations matching the search criteria

Exceptions

HttpRequestException

Thrown when non-success status codes occur