RoutePoint

class RoutePoint(val coordinate: GeoPoint, val routeOffset: Distance, val travelTime: Duration)

A GeoPoint on the route together with its distance offset along the route, estimated travel time, and remaining fuel or energy.

Parameters

coordinate

GeoPoint from the route polyline.

routeOffset

Distance offset along the route.

travelTime

Travel time (including traffic delay) from the start of the route.

Constructors

Link copied to clipboard
constructor(coordinate: GeoPoint, routeOffset: Distance, travelTime: Duration)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

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

Checks if this route point is equal to another object.

Link copied to clipboard
open override fun hashCode(): Int

Generates a hash code for this route point.

Link copied to clipboard
open override fun toString(): String

Returns a string representation of the route point.

Inherited functions

Link copied to clipboard

Calculates the angle (bearing) between this RoutePoint and the GeoPoint given as an argument.

Link copied to clipboard

Calculates the geographical distance from this RoutePoint.coordinate to the GeoPoint given as an argument.