共用方式為


MapsSearchClient.GetReverseGeocodingBatchAsync Method

Definition

The Reverse Geocoding Batch API sends batches of queries to Reverse Geocoding API using just a single API call. The API allows caller to batch up to 100 queries.

A reverse geocoding batchItem object can accept any of the supported reverse geocoding URI parameters.

The batch should contain at least 1 query.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Maps.Search.Models.GeocodingBatchResponse>> GetReverseGeocodingBatchAsync (System.Collections.Generic.IEnumerable<Azure.Maps.Search.Models.ReverseGeocodingQuery> queries, System.Threading.CancellationToken cancellationToken = default);
abstract member GetReverseGeocodingBatchAsync : seq<Azure.Maps.Search.Models.ReverseGeocodingQuery> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Maps.Search.Models.GeocodingBatchResponse>>
override this.GetReverseGeocodingBatchAsync : seq<Azure.Maps.Search.Models.ReverseGeocodingQuery> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Maps.Search.Models.GeocodingBatchResponse>>
Public Overridable Function GetReverseGeocodingBatchAsync (queries As IEnumerable(Of ReverseGeocodingQuery), Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of GeocodingBatchResponse))

Parameters

queries
IEnumerable<ReverseGeocodingQuery>

The list of reverse geocoding queries/requests to process. The list can contain a max of 100 queries and must contain at least 1 query.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

queries is empty.

Applies to