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 cancellation = default)
Parameters
queryStationQueryThe query to specify results with.
cancellationCancellationTokenToken to cancel the request.
Returns
- Task<IReadOnlyList<Station>>
List of stations matching the search criteria.
Exceptions
- HttpRequestException
Thrown when non-success status codes occur.