Share via


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