bahn_ex v1.0.0 BahnEx.DepartureBoard View Source

The modul for the departure board part of the DB Fahrplan api.

Link to this section Summary

Functions

Get departure board at a given location at a given daten and time

Link to this section Functions

Link to this function get_departures(station_id, iso_8601_date_time) View Source
get_departures(non_neg_integer | BahnEx.Location.t, Calendar.datetime | String.t) :: [BahnEx.Train.t]

Get departure board at a given location at a given daten and time.

id_or_location: either a integer id or a %BahnEx.Location{} iso_8601_date_time: a Calendar.dateTime or a string in ISO8601 date and time format

Returns: a list of %BahnEx.Train{} for the given station and time.