Departure
public struct Departure: Decodable, Equatable
A bus, tram or whatever leaving a specific stop at a specific time
-
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
-
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
or5 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
Declaration
Swift
public struct Departure: Decodable, Equatable
-
Convenience function taking a stop name. Sends of a find request first and uses the first result’s
id
as an argument for the monitor request.Declaration
Swift
public static func monitor(stopWithName name: String, date: Date = Date(), dateType: DateType = .arrival, allowedModes modes: [Mode] = Mode.allRequest, allowShorttermChanges: Bool = true, session: URLSession = .shared, completion: @escaping (Result<MonitorResponse>) -> Void)
-
Declaration
Swift
public var description: String
-
Declaration
Swift
public var hashValue: Int