Header menu logo fshafas

HafasAsyncClient Type

F# async based interface corresponding to hafas-client

Constructors

Constructor Description

HafasAsyncClient(profile)

Full Usage: HafasAsyncClient(profile)

Parameters:
Returns: HafasAsyncClient
profile : Profile
Returns: HafasAsyncClient

Instance members

Instance member Description

this.AsyncArrivals

Full Usage: this.AsyncArrivals

Parameters:
Returns: Async<Arrivals>
name : U4<string, Station, Stop, Location>
opt : DeparturesArrivalsOptions option
Returns: Async<Arrivals>

this.AsyncBestPrices

Full Usage: this.AsyncBestPrices

Parameters:
Returns: Async<Journeys>
from : U4<string, Station, Stop, Location>
to : U4<string, Station, Stop, Location>
opt : JourneysOptions option
Returns: Async<Journeys>

this.AsyncDepartures

Full Usage: this.AsyncDepartures

Parameters:
Returns: Async<Departures>
name : U4<string, Station, Stop, Location>
opt : DeparturesArrivalsOptions option
Returns: Async<Departures>

this.AsyncJourneys

Full Usage: this.AsyncJourneys

Parameters:
Returns: Async<Journeys>
from : U4<string, Station, Stop, Location>
to : U4<string, Station, Stop, Location>
opt : JourneysOptions option
Returns: Async<Journeys>

this.AsyncJourneysFromTrip

Full Usage: this.AsyncJourneysFromTrip

Parameters:
Returns: Async<Journeys>
fromTripId : string
previousStopOver : StopOver
to : U4<string, Station, Stop, Location>
opt : JourneysFromTripOptions option
Returns: Async<Journeys>

this.AsyncLines

Full Usage: this.AsyncLines

Parameters:
Returns: Async<LinesWithRealtimeData>
query : string
opt : LinesOptions option
Returns: Async<LinesWithRealtimeData>

this.AsyncLocations

Full Usage: this.AsyncLocations

Parameters:
Returns: Async<StationStopLocation array>
name : string
opt : LocationsOptions option
Returns: Async<StationStopLocation array>

this.AsyncNearby

Full Usage: this.AsyncNearby

Parameters:
Returns: Async<StationStopLocation array>
l : Location
opt : NearByOptions option
Returns: Async<StationStopLocation array>

this.AsyncRadar

Full Usage: this.AsyncRadar

Parameters:
Returns: Async<Radar>
rect : BoundingBox
opt : RadarOptions option
Returns: Async<Radar>

this.AsyncReachableFrom

Full Usage: this.AsyncReachableFrom

Parameters:
Returns: Async<DurationsWithRealtimeData>
l : Location
opt : ReachableFromOptions option
Returns: Async<DurationsWithRealtimeData>

this.AsyncRefreshJourney

Full Usage: this.AsyncRefreshJourney

Parameters:
Returns: Async<JourneyWithRealtimeData>
refreshToken : string
opt : RefreshJourneyOptions option
Returns: Async<JourneyWithRealtimeData>

this.AsyncRemarks

Full Usage: this.AsyncRemarks

Parameters:
Returns: Async<WarningsWithRealtimeData>
opt : RemarksOptions option
Returns: Async<WarningsWithRealtimeData>

this.AsyncServerInfo

Full Usage: this.AsyncServerInfo

Parameters:
Returns: Async<ServerInfo>
opt : ServerOptions option
Returns: Async<ServerInfo>

this.AsyncStop

Full Usage: this.AsyncStop

Parameters:
Returns: Async<StationStopLocation>
stop : U2<string, Stop>
opt : StopOptions option
Returns: Async<StationStopLocation>

this.AsyncTrip

Full Usage: this.AsyncTrip

Parameters:
Returns: Async<TripWithRealtimeData>
id : string
opt : TripOptions option
Returns: Async<TripWithRealtimeData>

this.AsyncTripsByName

Full Usage: this.AsyncTripsByName

Parameters:
Returns: Async<TripsWithRealtimeData>
lineName : string
opt : TripsByNameOptions option
Returns: Async<TripsWithRealtimeData>

this.distanceOfJourney j

Full Usage: this.distanceOfJourney j

Parameters:
Returns: float
j : Journey
Returns: float

Static members

Static member Description

HafasAsyncClient.initSerializer ()

Full Usage: HafasAsyncClient.initSerializer ()

HafasAsyncClient.productsOfFilter profile filter

Full Usage: HafasAsyncClient.productsOfFilter profile filter

Parameters:
Returns: Products
profile : Profile
filter : ProductType -> Boolean
Returns: Products

HafasAsyncClient.productsOfMode profile mode

Full Usage: HafasAsyncClient.productsOfMode profile mode

Parameters:
Returns: Products
profile : Profile
mode : ProductTypeMode
Returns: Products

HafasAsyncClient.toTask async

Full Usage: HafasAsyncClient.toTask async

Parameters:
Returns: Task<'a>
async : Async<'a>
Returns: Task<'a>

Type something to start searching.