共用方式為


MapsSearchClient.GetReverseGeocodingBatch 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 Azure.Response<Azure.Maps.Search.Models.GeocodingBatchResponse> GetReverseGeocodingBatch (System.Collections.Generic.IEnumerable<Azure.Maps.Search.Models.ReverseGeocodingQuery> queries, System.Threading.CancellationToken cancellationToken = default);
abstract member GetReverseGeocodingBatch : seq<Azure.Maps.Search.Models.ReverseGeocodingQuery> * System.Threading.CancellationToken -> Azure.Response<Azure.Maps.Search.Models.GeocodingBatchResponse>
override this.GetReverseGeocodingBatch : seq<Azure.Maps.Search.Models.ReverseGeocodingQuery> * System.Threading.CancellationToken -> Azure.Response<Azure.Maps.Search.Models.GeocodingBatchResponse>
Public Overridable Function GetReverseGeocodingBatch (queries As IEnumerable(Of ReverseGeocodingQuery), Optional cancellationToken As CancellationToken = Nothing) As 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