I\'m pretty desperate right now because I\'m trying to use GeoFire on my Firebase Database to find nearby users. I\'m pretty much stuck for two days now. I searched Google a
Try writing the locations with GeoFire like this. You don't need to store them under that location key.
location
let ref = FIRDatabase.database().reference() let geofireRef = ref.child("users_locations") let geoFire = GeoFire(firebaseRef: geofireRef) geoFire?.setLocation(myLocation, forKey: uid!)