Waypoint

Represents a waypoint in the trip.

Parameters

realTripIndex

the index of the waypoint in the trip.

searchResult

the search result of the waypoint. see DashSearchResult

favoriteType

the type of the favorite if the waypoint is a favorite. see DashFavoriteType

stateOfCharge

the state of charge at the waypoint in percentage (0-100) if available.

chargeData

the charge data of the waypoint. see ChargeData

duration

the estimated remaining duration to the waypoint, or null if unknown.

arrivalTime

the estimated time of arrival at the waypoint in epoch seconds, or null if unknown.

distance

the remaining distance to the waypoint in meters, or null if unknown.

formattedDuration

duration formatted for the current locale, for example "7 min".

formattedArrivalTime

arrivalTime formatted for the current locale, for example "14:05".

formattedDistance

distance formatted for the current locale, for example "20 km".

position

the 1-based number of the waypoint as shown in the UI. On EV vehicles it is null for charging stations, which are not numbered.

disruption

a disruption status for the EV station, if any. When non-null the arrival time is suppressed and charging data is not shown.

isArrived

whether the vehicle has arrived at the waypoint.

Properties

Link copied to clipboard
val arrivalTime: Long? = null
Link copied to clipboard
val chargeData: ChargeData? = null
Link copied to clipboard
val disruption: String? = null
Link copied to clipboard
val distance: Double? = null
Link copied to clipboard
val duration: Duration? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val isArrived: Boolean = false
Link copied to clipboard
val key: String
Link copied to clipboard
val position: Int? = null
Link copied to clipboard
Link copied to clipboard
val stateOfCharge: Float? = null

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