         var motion:CLLocationDirectionMotion
         if self > other {
             angle = self - other
-            motion = .anticlockwise
+            motion = .counterclockwise
         } else {
             angle = other - self
             motion = .clockwise

    ///Returns the absolute value of the smallest angle difference between two directions and an indication of the direction of change
    /// This is useful in determining both the magnitude and direction of the change of heading.
    func headingChangeTo(other:CLLocationDirection) -> (magnitude:CLLocationDirection, motion:CLLocationDirectionMotion) {
        guard self.isValid() && other.isValid() else {
            return (kCLLocationDirectionInvalid, .clockwise)
        }


}

extension CLLocation {
    public convenience init?(location:CLLocationCoordinate2D) {
        guard location.isValid() else {
            return nil
        }

        self.init(latitude: location.latitude, longitude: location.longitude)
    }
    
