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

BatchRoutesCallback

@PublicPreview("2021.06") interface BatchRoutesCallback

Callback which informs 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 successfully obtained.