RouteLeg

class RouteLeg

A leg is a section of a route from one waypoint to the next. A leg could be of type Vehicle, Pedestrian or Ferry. Legs of different types could occur together within a single route. For example, a car employing the use of a Ferry will contain Vehicle legs corresponding to journey on land, and Ferry legs corresponding to the journey via Ferry.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

FerryLegDetails is populated when the Leg type is Ferry, and provides additional information that is specific

Link copied to clipboard

Geometry of the area to be avoided.

Link copied to clipboard

List of languages for instructions within steps in the response.

Link copied to clipboard

Details related to the pedestrian leg.

Link copied to clipboard

Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility.

Link copied to clipboard

Type of the leg.

Link copied to clipboard

Details related to the vehicle leg.

Functions

Link copied to clipboard
inline fun copy(block: RouteLeg.Builder.() -> Unit = {}): RouteLeg
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