Traffic consideration mode for route calculation.
Controls how traffic conditions are factored into routing and travel time estimates.
Traffic Modes:
live: Real-time + historical traffic
live
historical: Typical traffic patterns only
historical
// Route considering current traffic (departing now)const trafficMode: TrafficInput = 'live';// Route based on typical patterns (planning ahead)const plannedRoute: TrafficInput = 'historical'; Copy
// Route considering current traffic (departing now)const trafficMode: TrafficInput = 'live';// Route based on typical patterns (planning ahead)const plannedRoute: TrafficInput = 'historical';
Traffic consideration mode for route calculation.
Controls how traffic conditions are factored into routing and travel time estimates.