RouteLineExpressionData

data class RouteLineExpressionData(offset: Double, @ColorInt() segmentColor: Int, legIndex: Int)

Contains data related to a route distance traveled and a traffic congestion color.

Parameters

offset

a distance offset value

segmentColor

a color for a segment of a route line

legIndex

the route leg index for this data

Constructors

RouteLineExpressionData
Link copied to clipboard
fun RouteLineExpressionData(offset: Double, @ColorInt() segmentColor: Int, legIndex: Int)
a distance offset value

Functions

component1
Link copied to clipboard
operator fun component1(): Double
component2
Link copied to clipboard
operator fun component2(): Int
component3
Link copied to clipboard
operator fun component3(): Int
copy
Link copied to clipboard
fun copy(offset: Double, @ColorInt() segmentColor: Int, legIndex: Int): RouteLineExpressionData
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

legIndex
Link copied to clipboard
val legIndex: Int
the route leg index for this data
offset
Link copied to clipboard
val offset: Double
a distance offset value
segmentColor
Link copied to clipboard
val segmentColor: Int
a color for a segment of a route line