Partilhar via


MapsSearchClient.GetPointOfInterestCategoryTreeAsync Método

Definição

Obter a API de Árvore de Categoria poi. A API de Categoria poi fornece uma lista completa de categorias e subcategorias poi (pontos de interesse) com suporte, juntamente com suas traduções e sinônimos. O conteúdo retornado pode ser usado para fornecer resultados mais significativos por meio de outras APIs do Serviço de Pesquisa, como Obter POI de Pesquisa.

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))

Parâmetros

language
Nullable<SearchLanguage>

Idioma no qual os resultados da pesquisa devem ser retornados. Deve ser uma das marcas de idioma IETF com suporte, exceto NGT e NGT-Latn. A marca de idioma não diferencia maiúsculas de minúsculas. Quando os dados no idioma especificado não estão disponíveis para um campo específico, o idioma padrão é usado (inglês). Consulte Idiomas com suporte para obter detalhes.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Aplica-se a