MapRouteFinder.GetDrivingRouteAsync 方法

定义

重载

GetDrivingRouteAsync(Geopoint, Geopoint)

获取指定开始和结束坐标的行驶路线。

GetDrivingRouteAsync(Geopoint, Geopoint, MapRouteDrivingOptions)

使用 MapRouteDrivingOptions) 获取指定起始坐标和结束坐标 (的行驶路线。

GetDrivingRouteAsync(Geopoint, Geopoint, MapRouteOptimization)

使用优化) (获取指定开始和结束坐标的行驶路线。

GetDrivingRouteAsync(Geopoint, Geopoint, MapRouteOptimization, MapRouteRestrictions)

使用优化和限制) (获取指定起始坐标和结束坐标的行驶路线。

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

使用优化、限制和航向) (获取指定起点和终点坐标的行驶路线。

GetDrivingRouteAsync(Geopoint, Geopoint)

获取指定开始和结束坐标的行驶路线。

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)

参数

startPoint
Geopoint

驾驶路线的起点。

endPoint
Geopoint

驾驶路线的终点。

返回

此方法成功完成后,将返回 MapRouteFinderResult 中包含的驾驶路线。

属性

另请参阅

适用于

GetDrivingRouteAsync(Geopoint, Geopoint, MapRouteDrivingOptions)

使用 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)

参数

startPoint
Geopoint

驾驶路线的起点。

endPoint
Geopoint

驾驶路线的终点。

options
MapRouteDrivingOptions

要应用于此路由的高级路由选项。

返回

此方法成功完成后,将返回 MapRouteFinderResult 中包含的一个或多个驾驶路线。

属性

另请参阅

适用于

GetDrivingRouteAsync(Geopoint, Geopoint, MapRouteOptimization)

使用优化) (获取指定开始和结束坐标的行驶路线。

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)

参数

startPoint
Geopoint

驾驶路线的起点。

endPoint
Geopoint

驾驶路线的终点。

optimization
MapRouteOptimization

计算驾驶路线时要应用的优化。

返回

此方法成功完成后,将返回 MapRouteFinderResult 中包含的驾驶路线。

属性

另请参阅

适用于

GetDrivingRouteAsync(Geopoint, Geopoint, MapRouteOptimization, MapRouteRestrictions)

使用优化和限制) (获取指定起始坐标和结束坐标的行驶路线。

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)

参数

startPoint
Geopoint

驾驶路线的起点。

endPoint
Geopoint

驾驶路线的终点。

optimization
MapRouteOptimization

计算驾驶路线时要应用的优化。

restrictions
MapRouteRestrictions

计算驾驶路线时要应用的限制。

返回

此方法成功完成后,将返回 MapRouteFinderResult 中包含的驾驶路线。

属性

另请参阅

适用于

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

使用优化、限制和航向) (获取指定起点和终点坐标的行驶路线。

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)

参数

startPoint
Geopoint

驾驶路线的起点。

endPoint
Geopoint

驾驶路线的终点。

optimization
MapRouteOptimization

计算驾驶路线时要应用的优化。

restrictions
MapRouteRestrictions

计算驾驶路线时要应用的限制。

headingInDegrees
Double

double

从驾驶路线的当前位置开始的首选起始方向。

返回

此方法成功完成后,将返回 MapRouteFinderResult 中包含的驾驶路线。

属性

另请参阅

适用于