RouteLeg
public struct RouteLeg
Represents information about a part of a Route between two RouteStops.
Contains a list of Instructions for all the maneuvers along the route leg.
-
Creates a
RouteLeginstance.Declaration
Swift
public init( geometry: [CLLocationCoordinate2D], instructions: [Instruction], summary: Summary, mapReferences: MapReferences? = nil )Parameters
geometryList of all coordinates of the route leg.
instructionsList of instructions associated with a particular guidance step.
summarySummary of the route.
mapReferencesThe map references.
-
List of all coordinates of the route leg.
Declaration
Swift
public var geometry: [CLLocationCoordinate2D] -
List of instructions associated with a particular guidance step.
Declaration
Swift
public var instructions: [Instruction] -
Summary of the route.
Declaration
Swift
public var summary: Summary -
The map references.
Declaration
Swift
public var mapReferences: MapReferences?
TomTom SDK for iOS (0.53.1)
RouteLeg