-
An array containing the traffic congestion level along each road segment in the route leg geometry.
The array is formed either by converting values of
segmentNumericCongestionLevelstoCongestionLeveltype (seeCongestionRange) or by takingsegmentCongestionLevels, depening whetherAttributeOptions.numericCongestionLevelorAttributeOptions.congestionLevelwas specified inDirectionsOptions.attributesduring Directions request.If both are present,
segmentNumericCongestionLevelsis preferred.If none are present, returns
nil.Declaration
Swift
public var resolvedCongestionLevels: [CongestionLevel]? { get } -
Declaration
Swift
public var shape: LineString { get } -
Returns an array of
MapboxStreetsRoadClassobjects for specific leg.MapboxStreetsRoadClasswill be set tonilif it’s not present inIntersection.Declaration
Swift
public var streetsRoadClasses: [MapboxStreetsRoadClass?] { get } -
Returns an array of
RoadClassesobjects for specific leg.RoadClasseswill be set tonilif it’s not present inIntersection.Declaration
Swift
public var roadClasses: [RoadClasses?] { get }
Install in Dash
RouteLeg Extension Reference