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 中包含的位置列表。

属性

另请参阅

适用于