Right now in my app, users can post images and it saves the user's current location with the image. In the table view i want it to query for images that are 5-10 km away from the user's area. Also users have their geolocation saved in their profile.
I know there is this code:
query.whereKey("location", nearGeoPoint: usergeo, withinKilometers: limitlocation)
but that is within x miles, i want x miles away.