sdk-routing / com.tomtom.online.sdk.routing.data.matrix / MatrixRoutingResponse / <init>

<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.

Parameters

results - MutableMap<MatrixRoutingResultKey!, MatrixRoutingResult!>!: A map which contains the results of a matrix query.

error - ResponseStatus!: The code which is used if an error occurred during routing.

totalRoutes - Int: The number of total routes calculated.

successfulRoutes - Int: The number of routes that were successful.