public struct TransitIncident

A transit incident describes disruptions on the transit network. Disruptions scale from delays to service cancellations.

  • A human readable summary of the incident.

    Declaration

    Swift

    public var summary: String?
  • A human readable description of the incident

    Declaration

    Swift

    public var description: String?
  • Type of the incident.

    Declaration

    Swift

    public var type: TransitIncidentType?
  • Effect of the incident.

    Declaration

    Swift

    public var effect: TransitIncidentEffect?
  • Valid from.

    Declaration

    Swift

    public var validFrom: Date?
  • Valid until.

    Declaration

    Swift

    public var validUntil: Date?
  • Link to the original incident published at the agency website.

    Declaration

    Swift

    public var url: String?
  • Creates a new instance.

    Declaration

    Swift

    public init(summary: String? = nil, description: String? = nil, type: TransitIncidentType? = nil, effect: TransitIncidentEffect? = nil, validFrom: Date? = nil, validUntil: Date? = nil, url: String? = nil)