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

MapsSearchClient.GetPointOfInterestCategoryTreeAsync 方法

定义

获取 POI 类别树 API。 POI 类别 API 提供了受支持的兴趣点的完整列表, (POI) 类别和子类别及其翻译和同义词。 返回的内容可用于通过其他搜索服务 API(例如 获取搜索 POI)提供更有意义的结果。

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Maps.Search.Models.PointOfInterestCategoryTreeResult>> GetPointOfInterestCategoryTreeAsync (Azure.Maps.Search.SearchLanguage? language = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetPointOfInterestCategoryTreeAsync : Nullable<Azure.Maps.Search.SearchLanguage> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Maps.Search.Models.PointOfInterestCategoryTreeResult>>
override this.GetPointOfInterestCategoryTreeAsync : Nullable<Azure.Maps.Search.SearchLanguage> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Maps.Search.Models.PointOfInterestCategoryTreeResult>>
Public Overridable Function GetPointOfInterestCategoryTreeAsync (Optional language As Nullable(Of SearchLanguage) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of PointOfInterestCategoryTreeResult))

参数

language
Nullable<SearchLanguage>

返回搜索结果时应采用的语言。 应为受支持的 IETF 语言标记之一,NGT 和 NGT-Latn 除外。 语言标记不区分大小写。 当指定语言的数据不适用于特定字段时,将使用默认语言 (英语) 。 有关详细信息,请参阅 支持的语言

cancellationToken
CancellationToken

要使用的取消标记。

返回

适用于