-api-id | -api-type |
---|---|
M:Windows.Services.Maps.MapRouteFinder.GetDrivingRouteAsync(Windows.Devices.Geolocation.Geopoint,Windows.Devices.Geolocation.Geopoint,Windows.Services.Maps.MapRouteOptimization,Windows.Services.Maps.MapRouteRestrictions,System.Double) |
winrt method |
Gets a driving route for the specified start and end coordinates (using optimizations, restrictions, and heading).
The starting point of the driving route.
The ending point of the driving route.
The optimizations to apply when calculating the driving route.
The restrictions to apply when calculating the driving route.
The preferred start direction from the current location for the driving route.
When this method completes successfully, it returns a driving route contained in the MapRouteFinderResult.
Display routes and directions on a map, GetDrivingRouteAsync(Geopoint, Geopoint), GetDrivingRouteAsync(Geopoint, Geopoint, MapRouteOptimization), GetDrivingRouteAsync(Geopoint, Geopoint, MapRouteOptimization, MapRouteRestrictions)