Enum TrafficModel
This field specifies one of the following assumptions to use when calculating
travel time in traffic conditions, shown in the enums below. Depending on the
enum chosen, the duration field of the TrafficModel response will vary. The
value contains the predicted time to destination in traffic, based on
historical averages. TrafficModel is only available for requests that have
set [RoutingPreference][google.maps.routing.v2.RoutingPreference] to
TRAFFIC_AWARE_OPTIMAL and
[RouteTravelMode][google.maps.routing.v2.RouteTravelMode] to DRIVE.
Namespace: Google.Maps.Routing.V2
Assembly: Google.Maps.Routing.V2.dll
Syntax
public enum TrafficModel
Fields
| Name | Description |
|---|---|
| BestGuess | Indicates that the returned |
| Optimistic | Indicates that the returned duration should be shorter than the actual travel time on most days, though occasional days with particularly good traffic conditions may be faster than this value. |
| Pessimistic | Indicates that the returned duration should be longer than the actual travel time on most days, though occasional days with particularly bad traffic conditions may exceed this value. |
| Unspecified | Unused. If specified, will default to |