CLLocationCoordinate2D

extension CLLocationCoordinate2D: Codable
extension CLLocationCoordinate2D: CustomDebugStringConvertible
extension CLLocationCoordinate2D: Equatable
extension CLLocationCoordinate2D: Hashable
extension CLLocationCoordinate2D: QueryItemConvertible

Important

This is a Public Preview API. It may be changed or removed at any time.
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws
  • Declaration

    Swift

    public init(from decoder: Decoder) throws
  • Declaration

    Swift

    public var debugDescription: String { get }
  • Returns the geographic distance in meters between the CLLocationCoordinate2D and the provided coordinate.

    Declaration

    Swift

    public func distance(to coordinate: CLLocationCoordinate2D) -> Measurement<UnitLength>

    Parameters

    coordinate

    The coordinate to calculate.

    Return Value

    The number of meters.

  • Declaration

    Swift

    public func hash(into hasher: inout Hasher)