sdk-routing / com.tomtom.online.sdk.routing / RoutingApi / planRoutes

planRoutes

@Beta(2020, 12) abstract fun planRoutes(batchRoutesSpecification: BatchRoutesSpecification): Result<BatchRoutesPlan>

Performs a synchronous plan route computing action based on the provided BatchRoutesSpecification object.

Parameters

batchRoutesSpecification - The object which contains data necessary to execute the plan route computing action.

Return
BatchRoutesPlan's Result object.

@Beta(2020, 12) abstract fun planRoutes(batchRoutesSpecification: BatchRoutesSpecification, batchRoutesCallback: BatchRoutesCallback): Unit

Performs an asynchronous plan route computing action based on the provided BatchRoutesSpecification object and returns the batch routes in the callback.

Parameters

batchRoutesSpecification - The object which contains data necessary to execute the plan route computing action.

@Beta(2020, 12) abstract fun planRoutes(matrixRoutesSpecification: MatrixRoutesSpecification): Result<MatrixRoutesPlan>

Performs a synchronous plan route computing action based on the provided MatrixRoutesSpecification object.

Parameters

matrixRoutesSpecification - The object which contains data necessary to execute the plan route computing action.

Return
MatrixRoutesPlan's Result object.

@Beta(2020, 12) abstract fun planRoutes(matrixRoutesSpecification: MatrixRoutesSpecification, matrixRoutesCallback: MatrixRoutesCallback): Unit

Performs an asynchronous plan route computing action based on the provided MatrixRoutesSpecification object and returns the matrix of routes in the callback.

Parameters

matrixRoutesSpecification - The object which contains the data necessary to execute the plan route computing action.