interface HafasClient { arrivals: ((station: | string | Location | Station | Stop,
options: undefined | DeparturesArrivalsOptions) => Promise<Arrivals>); departures: ((station: | string | Location | Station | Stop,
options: undefined | DeparturesArrivalsOptions) => Promise<Departures>); journeys: ((from: | string | Location | Station | Stop,
to: | string | Location | Station | Stop,
options: undefined | JourneysOptions) => Promise<Journeys>); journeysFromTrip?: ((fromTripId: string,
previousStopover: StopOver,
to: | string | Location | Station | Stop,
opt: undefined | JourneysFromTripOptions) => Promise<Journeys>); lines?: ((query: string,
opt: undefined | LinesOptions) => Promise<LinesWithRealtimeData>); locations: ((name: string,
options: undefined | LocationsOptions) => Promise<readonly (Location | Station | Stop)[]>); nearby: ((location: Location,
options: undefined | NearByOptions) => Promise<readonly (Location | Station | Stop)[]>); radar?: ((box: BoundingBox,
options: undefined | RadarOptions) => Promise<Radar>); reachableFrom?: ((address: Location,
options: undefined | ReachableFromOptions) => Promise<DurationsWithRealtimeData>); refreshJourney?: ((refreshToken: string,
options: undefined | RefreshJourneyOptions) => Promise<JourneyWithRealtimeData>); remarks?: ((opt: undefined | RemarksOptions) => Promise<WarningsWithRealtimeData>); serverInfo: ((opt: undefined | ServerOptions) => Promise<ServerInfo>); stop: ((id: string | Stop,
options: undefined | StopOptions) => Promise<Location | Station | Stop>); trip?: ((id: string,
options: undefined | TripOptions) => Promise<TripWithRealtimeData>); tripsByName?: ((lineNameOrFahrtNr: string,
options: undefined | TripsByNameOptions) => Promise<TripsWithRealtimeData>); } Properties
Optional
journeysFromTrip
Type declaration
- (fromTripId, previousStopover, to, opt): Promise<Journeys>
Returns Promise<Journeys>
Optional
radar
Type declaration
- (box, options): Promise<Radar>
Returns Promise<Radar>
Retrieves arrivals