Directions
public struct Directions
A Directions object will contain an array of Coordinate objects on a path, and a corresponding list of Instruction objects representing the instructions to display to the user.
-
A collection of coordinates that form a path
Declaration
Swift
public let path: [Coordinate]
-
A collection of instructions to display to the user
Declaration
Swift
public let instructions: [Instruction]
-
The distance of the path
Declaration
Swift
public let distance: Float
-
An instruction for a user to get from one Coordinate to another. It will have a Coordinate it happens at, an Action (depart, arrive, turn, take vortex), and optional Locations to perform this at or towards, as well as a String representing the text instructions to display to the user.
The at/towardsLocation properties are to let you mark or highlight key reference locations on the MapView if they will help the user find or keep their bearings.
See moreDeclaration
Swift
struct Instruction