     var timerUpdateGui: Timer!
     var locationsMarkersArr: [Data]!
     var previousLocationTime: Date!
+    var previousHorizontalAccuracy: Double!
 
     func deviceUuid() -> String {
         return (UIDevice.current.identifierForVendor?.uuidString)!

        }
        locationsMarkersArr.append(jsonData)
        lastLocationTime = Date.init()
    }

    func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
        updateLocation()
        locationManager.desiredAccuracy = kCLLocationAccuracyThreeKilometers
        locationManager.distanceFilter = 999999
    }

    func applicationWillResignActive(_ application: UIApplication) {


        locationManager = CLLocationManager()
        locationManager.delegate = self
        locationManager.desiredAccuracy = kCLLocationAccuracyBest
        locationManager.distanceFilter = 1
        locationManager.allowsBackgroundLocationUpdates = true
        locationManager.requestAlwaysAuthorization()
        locationManager.startMonitoringSignificantLocationChanges()
