AttributeOptions
Attributes 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.
-
-
-
-
-
Live-traffic closures along the road segment.
When this attribute is specified, the
RouteLeg.closuresproperty is filled with relevant data.This attribute requires
ProfileIdentifier.automobileAvoidingTrafficand is supported only by Directions and Map Matching requests. -
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. When used in Matrix request - will produce a distances matrix in response. -
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. When used in Matrix request - will produce a durations matrix in response. -
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. This attribute is supported only by Directions and Map Matching requests. -
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
ProfileIdentifier.automobileAvoidingTrafficand is supported only by Directions and Map Matching requests. Any other profile identifier producesCongestionLevel.unknownfor each segment along the route. -
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. This attribute is supported only by Directions and Map Matching requests. -
Traffic congestion level in numeric form.
When this attribute is specified, the
RouteLeg.numericCongestionLevelsproperty contains one value for each segment in the leg’s full geometry.This attribute requires
ProfileIdentifier.automobileAvoidingTrafficand is supported only by Directions and Map Matching requests. Any other profile identifier producesnilfor each segment along the route. -
Creates an AttributeOptions from the given description strings.
-
-
-
Install in Dash
AttributeOptions Structure Reference