RouteLeg

class RouteLeg(val points: List<GeoPoint>, val instructions: List<Instruction>, val summary: Summary, val mapReferences: MapReferences? = null)

Represents information about a part of a Route between RouteStops.

Constructors

Link copied to clipboard
constructor(points: List<GeoPoint>, instructions: List<Instruction>, summary: Summary, mapReferences: MapReferences? = null)

Properties

Link copied to clipboard

A list of Instructions that belong to the RouteLeg.

Link copied to clipboard
val mapReferences: MapReferences? = null

An optional MapReferences for the map data that belongs to RouteLeg.

Link copied to clipboard

A list of GeoPoints that belong to the RouteLeg.

Link copied to clipboard

A Summary of the route leg.

Functions

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

Checks if this RouteLeg object is equal to another object.

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

Generates a hash code for this RouteLeg object.

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

Returns a string representation of this RouteLeg object.