共用方式為


MapLocationFinder.FindLocationsAsync 方法

定義

多載

FindLocationsAsync(String, Geopoint)

使用指定的參考點做為查詢提示,將指定的位址轉換成地理位置集合 (地理編碼) 。

FindLocationsAsync(String, Geopoint, UInt32)

使用指定的參考點做為查詢提示,將指定的位址轉換成地理位置集合 (地理編碼) 。 此清單不超過指定的結果數目上限。

FindLocationsAsync(String, Geopoint)

使用指定的參考點做為查詢提示,將指定的位址轉換成地理位置集合 (地理編碼) 。

public:
 static IAsyncOperation<MapLocationFinderResult ^> ^ FindLocationsAsync(Platform::String ^ searchText, Geopoint ^ referencePoint);
/// [Windows.Foundation.Metadata.Overload("FindLocationsAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<MapLocationFinderResult> FindLocationsAsync(winrt::hstring const& searchText, Geopoint const& referencePoint);
[Windows.Foundation.Metadata.Overload("FindLocationsAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<MapLocationFinderResult> FindLocationsAsync(string searchText, Geopoint referencePoint);
function findLocationsAsync(searchText, referencePoint)
Public Shared Function FindLocationsAsync (searchText As String, referencePoint As Geopoint) As IAsyncOperation(Of MapLocationFinderResult)

參數

searchText
String

Platform::String

winrt::hstring

您要取得位置的查詢。

referencePoint
Geopoint

提供查詢提示的參考點。

傳回

當此方法成功完成時,它會傳回 MapLocationFinderResult中包含的位置清單。

屬性

另請參閱

適用於

FindLocationsAsync(String, Geopoint, UInt32)

使用指定的參考點做為查詢提示,將指定的位址轉換成地理位置集合 (地理編碼) 。 此清單不超過指定的結果數目上限。

public:
 static IAsyncOperation<MapLocationFinderResult ^> ^ FindLocationsAsync(Platform::String ^ searchText, Geopoint ^ referencePoint, unsigned int maxCount);
/// [Windows.Foundation.Metadata.Overload("FindLocationsWithMaxCountAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<MapLocationFinderResult> FindLocationsAsync(winrt::hstring const& searchText, Geopoint const& referencePoint, uint32_t const& maxCount);
[Windows.Foundation.Metadata.Overload("FindLocationsWithMaxCountAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<MapLocationFinderResult> FindLocationsAsync(string searchText, Geopoint referencePoint, uint maxCount);
function findLocationsAsync(searchText, referencePoint, maxCount)
Public Shared Function FindLocationsAsync (searchText As String, referencePoint As Geopoint, maxCount As UInteger) As IAsyncOperation(Of MapLocationFinderResult)

參數

searchText
String

Platform::String

winrt::hstring

您要取得位置的查詢。

referencePoint
Geopoint

提供查詢提示的參考點。

maxCount
UInt32

unsigned int

uint32_t

要取得的位置數目上限。

傳回

當此方法成功完成時,它會傳回 MapLocationFinderResult中包含的位置清單。

屬性

另請參閱

適用於