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

MapsSearchClient.SearchPointOfInterestCategoryAsync 方法

定义

按类别 API 获取 POI。 兴趣点 (POI) 类别搜索允许你从给定类别请求 POI 结果。 搜索允许一次从一个类别查询 POI。 终结点将仅返回按指定分类的 POI 结果。 响应包括 POI 详细信息,例如地址、一对坐标位置和分类。

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

参数

cancellationToken
CancellationToken

要使用的取消标记。

返回

注解

按类别获取 POI

适用于