sdk-routing / com.tomtom.online.sdk.routing.data.batch / BatchRoutingResponse

BatchRoutingResponse

@DeprecatedSince("2020.06", "com.tomtom.online.sdk.routing.batch.BatchRoutesPlan") open class BatchRoutingResponse : ServiceBaseResponse, Batchable
Deprecated: Deprecated in Java

The response to a Batch Routing request.

Constructors

<init>

BatchRoutingResponse()

Empty constructor for the BatchRoutingResponse.

BatchRoutingResponse(totalRequests: Int, successfulRequests: Int, responses: Array<BatchableRoutingResponse!>!)

Default constructor for the BatchRoutingResponse.

Properties

responses

var responses: Array<BatchableRoutingResponse!>!

successfulRequests

var successfulRequests: Int

totalRequests

var totalRequests: Int

Functions

getReachableRangeResponses

open fun getReachableRangeResponses(): MutableList<ReachableRangeResponse!>!

Gets a list of reachable range results of a Batch Search query. This list will be empty if there were no requests of this type.

getRouteRoutingResponses

open fun getRouteRoutingResponses(): MutableList<RouteResponse!>!

Gets a list of Route results of a Batch Routing query. This list will be empty if there were no requests of this type.

getRoutingResponses

open fun getRoutingResponses(): ImmutableList<BatchableRoutingResponse!>!

Gets a list of results of a Batch Routing query. For each item, use BatchableRoutingResponseVisitor to obtain the specific Response type.

getSuccessfulRequests

open fun getSuccessfulRequests(): Int

Returns how many requests are successful.

getTotalRequests

open fun getTotalRequests(): Int

Returns a total number of requests.

toString

open fun toString(): String