RoutePoint

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

Represents route GeoPoints 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: GeoPoint, routeOffset: Distance, travelTime: Duration)

Properties

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

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 geographic distance from this RoutePoint.coordinate to the GeoPoint given as an argument.