I'm trying to implement locational based query in Firebase without GeoFire (Since the last update was 6 months ago it seems deprecated)
Anyhow, I can't figure this out.
It's not firing the listener. When there's not starting at or ending at it works.
Query looks like so: (Just testing with Latitude)
// Testing, only doing longtude atm.
geoFlamesFIRReference
.queryStarting(atValue: coordinates!.longitude - radius, childKey: "longtitude")
.queryEnding(atValue: coordinates!.longitude + radius, childKey: "longtitude")
.queryLimited(toFirst: UInt(Constants.LIMIT_OF_FLAMES_ON_MAP))
.observe(.value, with: { snapshot in
print("New location?")
})
Then example of some of my data: