你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MapsSearchClient.SearchNearbyPointOfInterestAsync 方法

定义

附近的搜索 API。 如果你有一个仅检索特定位置的 POI 结果的用例,则附近的搜索方法可能是正确的选择。 此终结点仅返回 POI 结果,不采用搜索查询参数。

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Maps.Search.Models.SearchAddressResult>> SearchNearbyPointOfInterestAsync (Azure.Maps.Search.SearchNearbyPointOfInterestOptions options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member SearchNearbyPointOfInterestAsync : Azure.Maps.Search.SearchNearbyPointOfInterestOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Maps.Search.Models.SearchAddressResult>>
override this.SearchNearbyPointOfInterestAsync : Azure.Maps.Search.SearchNearbyPointOfInterestOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Maps.Search.Models.SearchAddressResult>>
Public Overridable Function SearchNearbyPointOfInterestAsync (Optional options As SearchNearbyPointOfInterestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SearchAddressResult))

参数

options
SearchNearbyPointOfInterestOptions

其他选项

cancellationToken
CancellationToken

要使用的取消标记。

返回

注解

附近搜索

适用于