CLLocationCoordinate2D
internal extension CLLocationCoordinate2D
extension CLLocationCoordinate2D: Hashable
extension CLLocationCoordinate2D: Equatable
-
Declaration
Swift
var isValid: Bool { get }
Return Value
True, if the location is valid. This allows some “slop” around the Prime Meridian/Equator point.
-
Compares two locations for “equality.”
Declaration
Swift
func isEqualTo(_ inComp: CLLocationCoordinate2D, precisionInMeters inPrecisionInMeters: CLLocationDistance = 0.0) -> Bool
Parameters
inComp
A location (long and lat), to which we are comparing ourselves.
precisionInMeters
This is an optional precision (slop area), in meters. If left out, then the match must be exact.
Return Value
True, if the locations are equal, according to the given precision.
-
This hashes the two double values.
Declaration
Swift
public func hash(into inHasher: inout Hasher)
Parameters
into
The mutable property that receives the hash.
-
They need to both be equal.
Declaration
Swift
public static func == (lhs: CLLocationCoordinate2D, rhs: CLLocationCoordinate2D) -> Bool
Parameters
lhs
The left-hand side of the comparison.
rhs
The right-hand side of the comparison.
Return Value
True, if they are equal.