             // check if a request completed, meaning expired or met horizontal accuracy
             //print("desiredAccuracy \(request.desiredAccuracy) horizontal \(self.location?.horizontalAccuracy)")
             if let location = self.locations?.first {
-                guard
-                    request.expired == true || location.horizontalAccuracy < request.desiredAccuracy
-                else {
+                guard request.isExpired == true || location.horizontalAccuracy < request.desiredAccuracy else {
                     return false
                 }
                 return true


// MARK: - types

/// Completion handler for one-shot location requests
public typealias OneShotCompletionHandler = (_: CLLocation?, _: Error?) -> ()

/// Time based filter constant
public let TimeFilterNone: TimeInterval = 0.0
/// Time based filter constant
public let TimeFilter5Minutes: TimeInterval = 5.0 * 60.0
/// Time based filter constant
public let TimeFilter10Minutes: TimeInterval = 10.0 * 60.0

/// Location authorization status
public enum LocationAuthorizationStatus: Int, CustomStringConvertible {
    case notDetermined = 0

            }
            
        } else {
            DispatchQueue.main.async {
                completionHandler?(.failure(PositionErrorType.restricted))
            }
        }
    }
    
