RoutePoint

data class RoutePoint(val coordinate: <Error class: unknown class>, val routeOffset: <Error class: unknown class>, val travelTime: <Error class: unknown class>)

Represents route GeoPoint together with its distance offset along the route and estimated travel time.

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

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: <Error class: unknown class>, routeOffset: <Error class: unknown class>, travelTime: <Error class: unknown class>)

Functions

Link copied to clipboard
fun RoutePoint.angleTo(that: <Error class: unknown class>): <Error class: unknown class>

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

Link copied to clipboard
fun RoutePoint.distanceTo(that: <Error class: unknown class>): <Error class: unknown class>

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

Properties

Link copied to clipboard
val coordinate: <Error class: unknown class>
Link copied to clipboard
val routeOffset: <Error class: unknown class>
Link copied to clipboard
val travelTime: <Error class: unknown class>