sdk-routing / com.tomtom.online.sdk.routing.batch / BatchRoutesCallback

BatchRoutesCallback

@Beta(2020, 12) interface BatchRoutesCallback

Callback which is responsible to inform about a received BatchRoutesPlan or respective error.

Functions

onError

abstract fun onError(error: RoutingException): Unit

Called when an error occurs during the process of obtaining the BatchRoutesPlan.

onSuccess

abstract fun onSuccess(routePlan: BatchRoutesPlan): Unit

Called when a BatchRoutesPlan has been obtained successfully.