Interface IStationClient
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
queryStationQueryThe query to specify results with
ctCancellationTokenToken to cancel the request
Returns
- Task<IReadOnlyList<Station>>
List of stations matching the search criteria
Exceptions
- HttpRequestException
Thrown when non-success status codes occur