Enum RoutingPreference
- Namespace
- GoogleMapsApi.Entities.Routes.Request
- Assembly
- GoogleMapsApi.dll
How the Routes API should factor live and historical traffic into route computation. Only applicable when TravelMode is Drive or TwoWheeler.
public enum RoutingPreference
Fields
[EnumMember(Value = "TRAFFIC_AWARE")] TrafficAware = 2Use live traffic. Higher latency and cost than TrafficUnaware.
[EnumMember(Value = "TRAFFIC_AWARE_OPTIMAL")] TrafficAwareOptimal = 3Use live traffic with the highest accuracy. Highest latency and cost.
[EnumMember(Value = "TRAFFIC_UNAWARE")] TrafficUnaware = 1Ignore live traffic. Cheapest and fastest, but less accurate during congestion.
[EnumMember(Value = "ROUTING_PREFERENCE_UNSPECIFIED")] Unspecified = 0Routing preference unspecified. Defaults to TrafficUnaware.