MapRouteOptimization
MapRouteOptimization
MapRouteOptimization
MapRouteOptimization
Enum
Definition
Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Prerelease APIs are identified by a Prerelease label.
[Contains prerelease APIs.]
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 MapRouteOptimizationpublic enum MapRouteOptimizationPublic Enum MapRouteOptimization// This API is not available in Javascript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Fields
| Distance Distance Distance Distance | Optimize the route by minimizing the distance. |
| Scenic Scenic Scenic Scenic | Prerelease. Optimize the route to include the most scenic roads. |
| Time Time Time Time | Optimize the route by minimizing the time. |
| TimeWithTraffic TimeWithTraffic TimeWithTraffic TimeWithTraffic | Optimize the route by minimizing the time with traffic.
|
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.