Departure

public struct Departure: Decodable, Equatable

A bus, tram or whatever leaving a specific stop at a specific time

  • id

    Undocumented

    Declaration

    Swift

    public struct Departure: Decodable, Equatable
  • Undocumented

    Declaration

    Swift

    public struct Departure: Decodable, Equatable
  • Undocumented

    Declaration

    Swift

    public struct Departure: Decodable, Equatable
  • Undocumented

    Declaration

    Swift

    public struct Departure: Decodable, Equatable
  • Undocumented

    Declaration

    Swift

    public struct Departure: Decodable, Equatable
  • Undocumented

    Declaration

    Swift

    public struct Departure: Decodable, Equatable
  • Undocumented

    Declaration

    Swift

    public struct Departure: Decodable, Equatable
  • Undocumented

    Declaration

    Swift

    public struct Departure: Decodable, Equatable
  • Undocumented

    Declaration

    Swift

    public struct Departure: Decodable, Equatable
  • Undocumented

    Declaration

    Swift

    public struct Departure: Decodable, Equatable
  • ETA

    The actual ETA. Should only be different from the scheduled ETA if not on time.

    Declaration

    Swift

    public var ETA: Int
  • The scheduled ETA, differs from actualEta if not on time.

    Declaration

    Swift

    public var scheduledETA: Int
  • ETA value including any possible delay.

    Declaration

    Swift

    public var fancyETA: String
  • ETA as a localized description, e.g. now or 5 minutes. Supports German and English. Defaults to English for everything else.

    Declaration

    Swift

    public func localizedETA(for locale: Locale = .current) -> String

    Parameters

    locale

    locale to use for localization, defaults to Locale.current

    Return Value

    localized string

  • Undocumented

    See more

    Declaration

    Swift

    public struct Departure: Decodable, Equatable
  • Undocumented

    See more

    Declaration

    Swift

    public struct Departure: Decodable, Equatable
  • Declaration

    Swift

    public var description: String
  • Declaration

    Swift

    public var hashValue: Int