public struct TransitDeparture

This struct holds the transit departure or arrival information.

  • The departure or arrival place.

    Declaration

    Swift

    public var place: RoutePlace
  • Expected departure or arrival time of the event.

    Declaration

    Swift

    public var time: Date?
  • The accumulated delay in seconds from the scheduled time of the event.

    Declaration

    Swift

    public var delay: Int32?
  • Status of the departure.

    Declaration

    Swift

    public var status: TransitDepartureStatus?
  • Creates a new instance.

    Declaration

    Swift

    public init(place: RoutePlace, time: Date? = nil, delay: Int32? = nil, status: TransitDepartureStatus? = nil)