Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 2.06 KB

maprouteoptimization.md

File metadata and controls

53 lines (37 loc) · 2.06 KB
-api-id -api-type
T:Windows.Services.Maps.MapRouteOptimization
winrt enum

MapRouteOptimization

-description

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

-enum-fields

-field Time:0

Optimize the route by minimizing the time.

-field Distance:1

Optimize the route by minimizing the distance.

-field 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.

-field Scenic:3

Optimize the route to include the most scenic roads.

-remarks

Important

Bing Maps for Enterprise service retirement

The UWP MapControl and map services from the Windows.Services.Maps namespaces rely on Bing Maps. Bing Maps for Enterprise is deprecated and will be retired, at which point the MapControl and services will no longer receive data.

For more information, see the Bing Maps Developer Center and Bing Maps documentation.

Your 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

-examples

-see-also

Display routes and directions on a map