Route
public struct Route: Decodable
A route from A to B.
-
Length of the route in meters.
Declaration
Swift
public let length: Double -
Duration of the route in minutes.
Declaration
Swift
public let duration: Double -
List of coordinates.
Declaration
Swift
public let coords: [CLLocationCoordinate2D] -
List of specific instructions.
Declaration
Swift
public let instructions: [Instruction] -
Declaration
Swift
public init(from decoder: Decoder) throwsParameters
decoder
-
A single route instruction.
See moreDeclaration
Swift
public struct Instruction
-
Fetch a route between two points.
Declaration
Parameters
originorigin
destinationdestination
modemode
sessionsession to use, defaults to
.sharedcompletionhandler
Route Struct Reference