TripSnapshot

data class TripSnapshot(val activeRoute: RouteSnapshot, val betterProposal: RouteSnapshot? = null, val hasDeviated: Boolean = false, val hasReachedDestination: Boolean = false)

A structure containing information about the route.

Important: This is a Public Preview API. It may be changed or removed at any time.

Parameters

activeRoute

Active route RouteSnapshot.

betterProposal

Better proposal route RouteSnapshot.

hasDeviated

Indicator of whether the driver has deviated from the route.

hasReachedDestination

Indicates if the destination has been reached.

Constructors

Link copied to clipboard
constructor(activeRoute: RouteSnapshot, betterProposal: RouteSnapshot? = null, hasDeviated: Boolean = false, hasReachedDestination: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val hasDeviated: Boolean = false
Link copied to clipboard