title: Instead of logging a user's coordinates (double) when he logs in, how can location delegate check the location when he is on the move?
body: <p>Currently the user location is logged each time he visits the home screen. It needs to also update when the user is on the move so that the location stays current.</p>
  
  <p>Here I set the location upon login</p>
  
  <pre><code>func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation])   {
      let databaseRef = Database.database().reference()
       let uid = Auth.auth().currentUser!.uid         
      guard let locValue: CLLocationCoordinate2D = manager.location?.coordinate else { return }
      print("locations = \(locValue.latitude) \(locValue.longitude)")
      latestLocation = ["latitude" : locValue.latitude, "longitude" : locValue.longitude]
      let lat = locValue.latitude
      let lon = locValue.longitude
      dict = CLLocation(latitude: lat, longitude: lon)
      print("dict", dict)
  
  
      if let locationDictionary = latestLocation {
          databaseRef.child("people").child(uid).child("Coordinates").setValue(locationDictionary)
  
      }
  
  
  }
  </code></pre>
  
  <p>Now I just nee it to always setValue when user moves materially.</p>