MapRouteOptimization MapRouteOptimization MapRouteOptimization MapRouteOptimization Enum

Definition

Specifies the optimizations applied to a route. This enumeration provides values for certain parameters of some overloads of the GetDrivingRouteAsync and GetDrivingRouteFromWaypointsAsync methods.

public : enum class MapRouteOptimization
enum class winrt::Windows::Services::Maps::MapRouteOptimization : int32_t
public enum MapRouteOptimization
Public Enum MapRouteOptimization
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Fields

Distance Distance Distance Distance 1

Optimize the route by minimizing the distance.

Scenic Scenic Scenic Scenic 3

Optimize the route to include the most scenic roads.

Time Time Time Time 0

Optimize the route by minimizing the time.

TimeWithTraffic TimeWithTraffic TimeWithTraffic TimeWithTraffic 2

Optimize the route by minimizing the time with traffic.

Tip

Traffic-based routing is not automatically updated. To capture changes in traffic conditions, repeat the query.

Remarks

Your Universal Windows app must be authenticated before it can use the MapControl and map services in the Windows.Services.Maps namespace. To authenticate your app, you must specify a maps authentication key.

See Request a maps authentication key.

Version history

Windows version SDK version Value added
1709 16299 Scenic

See also