AttributeOptions
public struct AttributeOptions : OptionSet, CustomStringConvertibleextension AttributeOptions: CodableAttributes are metadata information for a route leg.
When any of the attributes are specified, the resulting route leg contains one attribute value for each segment in leg, where a segment is the straight line between two coordinates in the route leg’s full geometry.
- 
                  
                  DeclarationSwift public var rawValue: Int
- 
                  
                  DeclarationSwift public init(rawValue: Int)
- 
                  
                  Distance (in meters) along the segment. When this attribute is specified, the RouteLeg.segmentDistancesproperty contains one value for each segment in the leg’s full geometry.DeclarationSwift public static let distance: AttributeOptions
- 
                  
                  Expected travel time (in seconds) along the segment. When this attribute is specified, the RouteLeg.expectedSegmentTravelTimesproperty contains one value for each segment in the leg’s full geometry.DeclarationSwift public static let expectedTravelTime: AttributeOptions
- 
                  
                  Current average speed (in meters per second) along the segment. When this attribute is specified, the RouteLeg.segmentSpeedsproperty contains one value for each segment in the leg’s full geometry.DeclarationSwift public static let speed: AttributeOptions
- 
                  
                  Traffic congestion level along the segment. When this attribute is specified, the RouteLeg.congestionLevelsproperty contains one value for each segment in the leg’s full geometry.This attribute requires DirectionsProfileIdentifier.automobileAvoidingTraffic. Any other profile identifier producesCongestionLevel.unknownfor each segment along the route.DeclarationSwift public static let congestionLevel: AttributeOptions
- 
                  
                  The maximum speed limit along the segment. When this attribute is specified, the RouteLeg.segmentMaximumSpeedLimitsproperty contains one value for each segment in the leg’s full geometry.DeclarationSwift public static let maximumSpeedLimit: AttributeOptions
- 
                  
                  Creates an AttributeOptions from the given description strings. DeclarationSwift public init?(descriptions: [String])
- 
                  
                  DeclarationSwift public var description: String { get }
- 
                  
                  DeclarationSwift public func encode(to encoder: Encoder) throws
- 
                  
                  DeclarationSwift public init(from decoder: Decoder) throws
 Install in Dash
              Install in Dash
             AttributeOptions Structure Reference
        AttributeOptions Structure Reference