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, made up of a list of GeoPoint points. Contains a list of Instructions for all the maneuvers along the route leg.

Parameters

points

A list of GeoPoints that belong to the RouteLeg.

instructions

A list of Instructions that belong to the RouteLeg.

summary

A Summary of the route leg.

mapReferences

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

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard
val mapReferences: MapReferences? = null
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
operator fun component1(): List<GeoPoint>
Link copied to clipboard
operator fun component2(): List<Instruction>
Link copied to clipboard
operator fun component3(): Summary
Link copied to clipboard
operator fun component4(): MapReferences?
Link copied to clipboard
fun copy(points: List<GeoPoint> = this.points, instructions: List<Instruction> = this.instructions, summary: Summary = this.summary, mapReferences: MapReferences? = this.mapReferences): RouteLeg

Creates a copy of this RouteLeg object with optional parameter overrides.

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.