Delen via


MapRouteFinder.GetDrivingRouteAsync Method

Definition

Overloads

GetDrivingRouteAsync(Geopoint, Geopoint)

Gets a driving route for the specified start and end coordinates.

GetDrivingRouteAsync(Geopoint, Geopoint, MapRouteDrivingOptions)

Gets a driving route for the specified start and end coordinates (using MapRouteDrivingOptions).

GetDrivingRouteAsync(Geopoint, Geopoint, MapRouteOptimization)

Gets a driving route for the specified start and end coordinates (using optimizations).

GetDrivingRouteAsync(Geopoint, Geopoint, MapRouteOptimization, MapRouteRestrictions)

Gets a driving route for the specified start and end coordinates (using optimizations and restrictions).

GetDrivingRouteAsync(Geopoint, Geopoint, MapRouteOptimization, MapRouteRestrictions, Double)

Gets a driving route for the specified start and end coordinates (using optimizations, restrictions, and heading).

GetDrivingRouteAsync(Geopoint, Geopoint)

Gets a driving route for the specified start and end coordinates.

public:
 static IAsyncOperation<MapRouteFinderResult ^> ^ GetDrivingRouteAsync(Geopoint ^ startPoint, Geopoint ^ endPoint);
/// [Windows.Foundation.Metadata.Overload("GetDrivingRouteAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<MapRouteFinderResult> GetDrivingRouteAsync(Geopoint const& startPoint, Geopoint const& endPoint);
[Windows.Foundation.Metadata.Overload("GetDrivingRouteAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<MapRouteFinderResult> GetDrivingRouteAsync(Geopoint startPoint, Geopoint endPoint);
function getDrivingRouteAsync(startPoint, endPoint)
Public Shared Function GetDrivingRouteAsync (startPoint As Geopoint, endPoint As Geopoint) As IAsyncOperation(Of MapRouteFinderResult)

Parameters

startPoint
Geopoint

The starting point of the driving route.

endPoint
Geopoint

The ending point of the driving route.

Returns

When this method completes successfully, it returns a driving route contained in the MapRouteFinderResult.

Attributes

See also

Applies to

GetDrivingRouteAsync(Geopoint, Geopoint, MapRouteDrivingOptions)

Gets a driving route for the specified start and end coordinates (using MapRouteDrivingOptions).

public:
 static IAsyncOperation<MapRouteFinderResult ^> ^ GetDrivingRouteAsync(Geopoint ^ startPoint, Geopoint ^ endPoint, MapRouteDrivingOptions ^ options);
/// [Windows.Foundation.Metadata.DefaultOverload]
/// [Windows.Foundation.Metadata.Overload("GetDrivingRouteWithOptionsAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<MapRouteFinderResult> GetDrivingRouteAsync(Geopoint const& startPoint, Geopoint const& endPoint, MapRouteDrivingOptions const& options);
[Windows.Foundation.Metadata.DefaultOverload]
[Windows.Foundation.Metadata.Overload("GetDrivingRouteWithOptionsAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<MapRouteFinderResult> GetDrivingRouteAsync(Geopoint startPoint, Geopoint endPoint, MapRouteDrivingOptions options);
function getDrivingRouteAsync(startPoint, endPoint, options)
Public Shared Function GetDrivingRouteAsync (startPoint As Geopoint, endPoint As Geopoint, options As MapRouteDrivingOptions) As IAsyncOperation(Of MapRouteFinderResult)

Parameters

startPoint
Geopoint

The starting point of the driving route.

endPoint
Geopoint

The ending point of the driving route.

options
MapRouteDrivingOptions

The advanced routing options to be applied to this route.

Returns

When this method completes successfully, it returns one or more driving routes contained in the MapRouteFinderResult.

Attributes

See also

Applies to

GetDrivingRouteAsync(Geopoint, Geopoint, MapRouteOptimization)

Gets a driving route for the specified start and end coordinates (using optimizations).

public:
 static IAsyncOperation<MapRouteFinderResult ^> ^ GetDrivingRouteAsync(Geopoint ^ startPoint, Geopoint ^ endPoint, MapRouteOptimization optimization);
/// [Windows.Foundation.Metadata.Overload("GetDrivingRouteWithOptimizationAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<MapRouteFinderResult> GetDrivingRouteAsync(Geopoint const& startPoint, Geopoint const& endPoint, MapRouteOptimization const& optimization);
[Windows.Foundation.Metadata.Overload("GetDrivingRouteWithOptimizationAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<MapRouteFinderResult> GetDrivingRouteAsync(Geopoint startPoint, Geopoint endPoint, MapRouteOptimization optimization);
function getDrivingRouteAsync(startPoint, endPoint, optimization)
Public Shared Function GetDrivingRouteAsync (startPoint As Geopoint, endPoint As Geopoint, optimization As MapRouteOptimization) As IAsyncOperation(Of MapRouteFinderResult)

Parameters

startPoint
Geopoint

The starting point of the driving route.

endPoint
Geopoint

The ending point of the driving route.

optimization
MapRouteOptimization

The optimizations to apply when calculating the driving route.

Returns

When this method completes successfully, it returns a driving route contained in the MapRouteFinderResult.

Attributes

See also

Applies to

GetDrivingRouteAsync(Geopoint, Geopoint, MapRouteOptimization, MapRouteRestrictions)

Gets a driving route for the specified start and end coordinates (using optimizations and restrictions).

public:
 static IAsyncOperation<MapRouteFinderResult ^> ^ GetDrivingRouteAsync(Geopoint ^ startPoint, Geopoint ^ endPoint, MapRouteOptimization optimization, MapRouteRestrictions restrictions);
/// [Windows.Foundation.Metadata.Overload("GetDrivingRouteWithOptimizationAndRestrictionsAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<MapRouteFinderResult> GetDrivingRouteAsync(Geopoint const& startPoint, Geopoint const& endPoint, MapRouteOptimization const& optimization, MapRouteRestrictions const& restrictions);
[Windows.Foundation.Metadata.Overload("GetDrivingRouteWithOptimizationAndRestrictionsAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<MapRouteFinderResult> GetDrivingRouteAsync(Geopoint startPoint, Geopoint endPoint, MapRouteOptimization optimization, MapRouteRestrictions restrictions);
function getDrivingRouteAsync(startPoint, endPoint, optimization, restrictions)
Public Shared Function GetDrivingRouteAsync (startPoint As Geopoint, endPoint As Geopoint, optimization As MapRouteOptimization, restrictions As MapRouteRestrictions) As IAsyncOperation(Of MapRouteFinderResult)

Parameters

startPoint
Geopoint

The starting point of the driving route.

endPoint
Geopoint

The ending point of the driving route.

optimization
MapRouteOptimization

The optimizations to apply when calculating the driving route.

restrictions
MapRouteRestrictions

The restrictions to apply when calculating the driving route.

Returns

When this method completes successfully, it returns a driving route contained in the MapRouteFinderResult.

Attributes

See also

Applies to

GetDrivingRouteAsync(Geopoint, Geopoint, MapRouteOptimization, MapRouteRestrictions, Double)

Gets a driving route for the specified start and end coordinates (using optimizations, restrictions, and heading).

public:
 static IAsyncOperation<MapRouteFinderResult ^> ^ GetDrivingRouteAsync(Geopoint ^ startPoint, Geopoint ^ endPoint, MapRouteOptimization optimization, MapRouteRestrictions restrictions, double headingInDegrees);
/// [Windows.Foundation.Metadata.Overload("GetDrivingRouteWithOptimizationRestrictionsAndHeadingAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<MapRouteFinderResult> GetDrivingRouteAsync(Geopoint const& startPoint, Geopoint const& endPoint, MapRouteOptimization const& optimization, MapRouteRestrictions const& restrictions, double const& headingInDegrees);
[Windows.Foundation.Metadata.Overload("GetDrivingRouteWithOptimizationRestrictionsAndHeadingAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<MapRouteFinderResult> GetDrivingRouteAsync(Geopoint startPoint, Geopoint endPoint, MapRouteOptimization optimization, MapRouteRestrictions restrictions, double headingInDegrees);
function getDrivingRouteAsync(startPoint, endPoint, optimization, restrictions, headingInDegrees)
Public Shared Function GetDrivingRouteAsync (startPoint As Geopoint, endPoint As Geopoint, optimization As MapRouteOptimization, restrictions As MapRouteRestrictions, headingInDegrees As Double) As IAsyncOperation(Of MapRouteFinderResult)

Parameters

startPoint
Geopoint

The starting point of the driving route.

endPoint
Geopoint

The ending point of the driving route.

optimization
MapRouteOptimization

The optimizations to apply when calculating the driving route.

restrictions
MapRouteRestrictions

The restrictions to apply when calculating the driving route.

headingInDegrees
Double

double

The preferred start direction from the current location for the driving route.

Returns

When this method completes successfully, it returns a driving route contained in the MapRouteFinderResult.

Attributes

See also

Applies to