midas/sdk/trafiklab/realtidsinformation_4

Types

pub type BusDeparture {
  BusDeparture(
    journey_direction: Int,
    destination: String,
    timetabled: String,
    expected: String,
    display: String,
  )
}

Constructors

  • BusDeparture(
      journey_direction: Int,
      destination: String,
      timetabled: String,
      expected: String,
      display: String,
    )

Constants

pub const eyvind_johnsons_gata: String
pub const moa_martinsons_torg: String

Functions

pub fn bus_departure_decoder(
  raw: Dynamic,
) -> Result(BusDeparture, List(DecodeError))
pub fn departures(
  api_key: String,
  site_id: String,
  time_window: Int,
) -> Effect(List(BusDeparture))
pub fn departures_request(
  api_key: String,
  site_id: String,
  time_window: Int,
) -> Request(BitArray)
pub fn departures_response(
  response: Response(BitArray),
) -> Result(List(BusDeparture), Snag)
Search Document