RouteLeg
public struct RouteLeg
Represents information about a part of a Route
Important
This is a Public Preview API. It may be changed or removed at any time.-
Initializer
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 let geometry: [CLLocationCoordinate2D] -
List of instructions associated with a particular guidance step.
Declaration
Swift
public let instructions: [Instruction] -
Summary of the route.
Declaration
Swift
public let summary: Summary -
The map references.
Declaration
Swift
public let mapReferences: MapReferences?
-
Copies the current
RouteLegwith changes specified in the build closure.Declaration
Swift
public func copy(build: (inout Builder) -> ()) -> RouteLegParameters
buildThis closure changes
RouteLegvalues.Return Value
A RouteLeg with the changes set on the closure
RouteLeg Structure Reference