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.
-
-
-
-
-
Distance (in meters) along the segment.
When this attribute is specified, the
RouteLeg.segmentDistances
property contains one value for each segment in the leg’s full geometry. -
Expected travel time (in seconds) along the segment.
When this attribute is specified, the
RouteLeg.expectedSegmentTravelTimes
property contains one value for each segment in the leg’s full geometry. -
Current average speed (in meters per second) along the segment.
When this attribute is specified, the
RouteLeg.segmentSpeeds
property contains one value for each segment in the leg’s full geometry. -
Traffic congestion level along the segment.
When this attribute is specified, the
RouteLeg.congestionLevels
property contains one value for each segment in the leg’s full geometry.This attribute requires
ProfileIdentifier.automobileAvoidingTraffic
. Any other profile identifier producesCongestionLevel.unknown
for each segment along the route. -
The maximum speed limit along the segment.
When this attribute is specified, the
RouteLeg.segmentMaximumSpeedLimits
property contains one value for each segment in the leg’s full geometry. -
Traffic congestion level in numeric form.
When this attribute is specified, the
RouteLeg.numericCongestionLevels
property contains one value for each segment in the leg’s full geometry.This attribute requires
ProfileIdentifier.automobileAvoidingTraffic
. Any other profile identifier producesnil
for each segment along the route. -
Creates an AttributeOptions from the given description strings.
-
-
-