OnRouteDetails

class OnRouteDetails(val detourDuration: Duration? = null, val detourDistance: Distance? = null, val detourOffset: Distance? = null)

Describes the details related to the route for point of interest along the route.

Constructors

Link copied to clipboard
constructor(detourDuration: Duration? = null, detourDistance: Distance? = null, detourOffset: Distance? = null)

Properties

Link copied to clipboard

The detour Distance is the added value to the route length, after a point of interest has been added to the route. If the route that passes through the found point is shorter than the original one, the detour distance value is negative.

Link copied to clipboard

The detour duration for a passenger car in seconds. The detour duration is the value added to the estimated time of arrival (to the final destination), after a point of interest has been added to the route. If the route that passes through the found point is faster than the original one, the detour duration value is negative.

Link copied to clipboard
val detourOffset: Distance? = null

The length of the route part from the starting point to the detour starting point.

Functions

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

Checks if this OnRouteDetails object is equal to another object.

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

Generates a hash code for this onRouteDetails object.