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 Route with explicit route coordinates

    Declaration

    Swift

    public init(coordinates: [CLLocationCoordinate2D])

    Parameters

    coordinates

    route 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

    hasher

    system hasher