sdk-routing / com.tomtom.online.sdk.routing.data.matrix / MatrixRoutingResponse

MatrixRoutingResponse

@DeprecatedSince("2020.06", "com.tomtom.online.sdk.routing.matrix.MatrixRoutesPlan") class MatrixRoutingResponse : ServiceBaseResponse
Deprecated: Deprecated in Java

The response to a Matrix Routing request.

Constructors

<init>

MatrixRoutingResponse(results: MutableMap<MatrixRoutingResultKey!, MatrixRoutingResult!>!, error: ResponseStatus!, totalRoutes: Int, successfulRoutes: Int)

A constructor of the matrix routing response called after a matrix routing request. It initializes fields with the results of a matrix routing query.

Functions

equals

fun equals(other: Any?): Boolean

getResults

fun getResults(): MutableMap<MatrixRoutingResultKey!, MatrixRoutingResult!>!

Returns a map which contains the results of the matrix query. It corresponds to pairs of origin and destination locations which is described by MatrixRoutingResultKey

getSuccessfulRoutes

fun getSuccessfulRoutes(): Int

Returns the number of successful routes calculated by the matrix routing.

getTotalRoutes

fun getTotalRoutes(): Int

Returns the number of total routes calculated by matrix routing.

hashCode

fun hashCode(): Int

toString

fun toString(): String