how can I get the Value of this GeoFire?
Error Message: Instance member 'query' cannot be used on type 'GeoFire'; did you mean to use a value of this type instead?
let center = CLLocation(latitude: location.coordinate.latitude, longitude: location.coordinate.longitude)
let circleQuery = GeoFire.query(at: center, withRadius: 20);
circleQuery.observe(.keyEntered) { (key, location,snapshot) in
// parse the snapshot for your result.
print("Key '\(key)' entered the search area and is at location '\(location)'")
}
Original Code: How to query nearest users in Firebase with Swift?