I'm using Geofire to store items with their location.
In order to retrieve items within a specific area I use Geofire's geo query:
var queryHandle = query.observeEventType(.KeyEntered, withBlock: {(key: String!, location: CLLocation!) in
println("Key '\(key)' entered the search area and is at location '\(location)'")
})
The result is, as expected, keys in the specified area - my question is: how do I get the actual object so I can access the rest of the properties it has?
I'm doing all that as part of a UITableView because I want to present objects near me in a table (and later on on a map)
Any best practices in populating a UITableView using geofire will be appreciated as well.
Thank you!