Dela via


MapsRoutingClient.GetDirectionsImmediateBatchAsync Method

Definition

The Route Directions Batch API sends batches of queries to Route Directions API using just a single API call. You can call Route Directions Batch API to run either asynchronously (async) or synchronously (sync). The sync API up to 100 queries.

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

Parameters

queries
IEnumerable<RouteDirectionQuery>

The list of route directions queries/requests to process. The list can contain 100 queries for sync version and must contain at least 1 query.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

queries is null.

Applies to