-api-id | -api-type |
---|---|
T:Windows.Services.Maps.MapRouteOptimization |
winrt enum |
Specifies the optimizations applied to a route. This enumeration provides values for certain parameters of some overloads of the GetDrivingRouteAsync and GetDrivingRouteFromWaypointsAsync methods.
Optimize the route by minimizing the time.
Optimize the route by minimizing the distance.
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.
Optimize the route to include the most scenic roads.
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.
Windows version | SDK version | Value added |
---|---|---|
1709 | 16299 | Scenic |