RouteCalloutUiState

Represents the state of a route callout view. Stores only lightweight data instead of heavy NavigationRoute objects to prevent memory leaks.

Parameters

routeId

unique identifier of the route.

duration

total duration of the route.

locale

locale for formatting route data.

isPrimary

flag indicating if this is the primary (selected) route.

durationDifferenceWithPrimary

time difference compared to the primary route.

layerId

represents the layer on the map which is used for the corresponding route line, may be empty.

isFastest

a flag showing that related route is the fastest one.

isSuggested

a flag showing that related route is the suggested by navigation engine as the most optimal.

isBest

a flag showing that related route is only one route returned by navigation engine.

hasTollRoad

a flag showing that related route has toll road along the way.

isEcoRoute

represents whether a route is the most effective in terms of energy consumption.

onClick

represents callback of clicking on the related view.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val onClick: () -> Unit
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String