Enum TrafficModel
- Namespace
- GoogleMapsApi.Entities.Routes.Request
- Assembly
- GoogleMapsApi.dll
Traffic model used when RoutingPreference is TrafficAware or TrafficAwareOptimal.
public enum TrafficModel
Fields
[EnumMember(Value = "BEST_GUESS")] BestGuess = 1Use the best estimate of travel time given live and historical traffic.
[EnumMember(Value = "OPTIMISTIC")] Optimistic = 3Use the optimistic estimate (shorter than actual in most cases).
[EnumMember(Value = "PESSIMISTIC")] Pessimistic = 2Use the pessimistic estimate (longer than actual in most cases).
[EnumMember(Value = "TRAFFIC_MODEL_UNSPECIFIED")] Unspecified = 0Unspecified; treated as BestGuess.