fshafas#

fshafas.hafas_client#

class fshafas.hafas_client.HafasClient(profile: Profile)[source]#

Bases: IDisposable

Dispose() None[source]#
async arrivals(name: str | Station | Stop | Location, opt: DeparturesArrivalsOptions | None = None) Arrivals[source]#

Query the next arrivals at a station.

async bestprices(_from: str, _to: str, opt: JourneysOptions | None = None) Journeys[source]#

Get best prices for journeys.

async departures(name: str | Station | Stop | Location, opt: DeparturesArrivalsOptions | None = None) Departures[source]#

Query the next departures at a station.

async journeys(_from: str | Station | Stop | Location, _to: str | Station | Stop | Location, opt: JourneysOptions | None = None) Journeys[source]#

Get journeys between locations.

async locations(name: str, opt: LocationsOptions | None = None) List[StationStopLocation][source]#

Find stations, POIs and addresses.

async nearby(l: Location, opt: NearByOptions | None = None) List[StationStopLocation][source]#

Show stations & POIs around.

productsOfMode(profile: Profile, mode: str) IndexMap_2[str, bool][source]#
async radar(rect: BoundingBox, opt: RadarOptions | None = None) Radar[source]#

Find all vehicles currently in a certain area.

async tripsByName(name: str, opt: TripsByNameOptions | None = None) TripsWithRealtimeData[source]#

Get all trips matching a name.

fshafas.util#

fshafas.util.enable_logging() Any[source]#