MapRouteFinder.GetDrivingRouteAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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, MapRouteOptimization)
- GetDrivingRouteAsync(Geopoint, Geopoint, MapRouteOptimization, MapRouteRestrictions)
- GetDrivingRouteAsync(Geopoint, Geopoint, MapRouteOptimization, MapRouteRestrictions, Double)
- 在地圖上顯示路線和路線指引
適用於
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)
- GetDrivingRouteAsync(Geopoint, Geopoint, MapRouteOptimization)
- GetDrivingRouteAsync(Geopoint, Geopoint, MapRouteOptimization, MapRouteRestrictions)
- GetDrivingRouteAsync(Geopoint, Geopoint, MapRouteOptimization, MapRouteRestrictions, Double)
適用於
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)
- GetDrivingRouteAsync(Geopoint, Geopoint, MapRouteOptimization, MapRouteRestrictions)
- GetDrivingRouteAsync(Geopoint, Geopoint, MapRouteOptimization, MapRouteRestrictions, Double)
- 在地圖上顯示路線和路線指引
適用於
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)
- GetDrivingRouteAsync(Geopoint, Geopoint, MapRouteOptimization)
- GetDrivingRouteAsync(Geopoint, Geopoint, MapRouteOptimization, MapRouteRestrictions, Double)
- 在地圖上顯示路線和路線指引
適用於
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中包含的駕駛路線。
- 屬性
另請參閱
- GetDrivingRouteAsync(Geopoint, Geopoint)
- GetDrivingRouteAsync(Geopoint, Geopoint, MapRouteOptimization)
- GetDrivingRouteAsync(Geopoint, Geopoint, MapRouteOptimization, MapRouteRestrictions)
- 在地圖上顯示路線和路線指引