I\'m quite new to work with Firebase and its location library, GeoFire. Currently I\'m facing some problem when structuring my data.
At the moment my db is something
To save all your records that match the query you have to store all of using something like:
var allKeys = [String:CLLocation]()
circleQuery.observeEventType(GFEventTypeKeyEntered, withBlock: {
(key: String!, location: CLLocation!) in
allKeys [key]=location
}
and then use
circleQuery.observeReadyWithBlock({
print("All initial data has been loaded and events have been fired!")
})