Table of Contents

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 = 2

Use live traffic. Higher latency and cost than TrafficUnaware.

[EnumMember(Value = "TRAFFIC_AWARE_OPTIMAL")] TrafficAwareOptimal = 3

Use live traffic with the highest accuracy. Highest latency and cost.

[EnumMember(Value = "TRAFFIC_UNAWARE")] TrafficUnaware = 1

Ignore live traffic. Cheapest and fastest, but less accurate during congestion.

[EnumMember(Value = "ROUTING_PREFERENCE_UNSPECIFIED")] Unspecified = 0

Routing preference unspecified. Defaults to TrafficUnaware.