Route
public class Route : Codable, Hashable
Represents navigation route that consist of the set of coordinates
-
Route coordinates. Usually there are start point, turns and end point
Declaration
Swift
public var coordinates: [CLLocationCoordinate2D] { get } -
Initialize
Routewith explicit route coordinatesDeclaration
Swift
public init(coordinates: [CLLocationCoordinate2D])Parameters
coordinatesroute coordinates
-
Compare routes by coordinates
Declaration
Swift
public static func == (lhs: Route, rhs: Route) -> Bool -
Hash implementation route
Declaration
Swift
public func hash(into hasher: inout Hasher)Parameters
hashersystem hasher
Route Class Reference