TimeRestriction
public struct TimeRestriction : Hashable
Represents restriction based on time.
Note: This is a beta release of this feature. Related APIs may change for new releases without a deprecation process.
-
The category of the time restriction.
Declaration
Swift
public var category: TimeRestriction.Category -
Specifies to which transportation types the time rules apply.
Declaration
Swift
public var applicability: [TransportType] -
Time rule in TimeDomain format, which is part of the GDF specification.
Declaration
Swift
public var timeRule: TimeRule? -
Creates a new instance.
Declaration
Swift
public init(category: TimeRestriction.Category = TimeRestriction.Category.prohibited, applicability: [TransportType] = [], timeRule: TimeRule? = nil) -
Category of time restriction.
See moreDeclaration
Swift
public enum Category : UInt32, CaseIterable, Codable