I have used $nearSphere and $maxDistanceInKilometers to return objects that located within a specified distance from the user (ie. using a Long/Lat geopoint).
However, I need to display how far each of these objects are from the user. I would prefer this to be calculated in the back-end and simply returned in the json response.
I have read that the mongoDB functions "geoNear" and/or "$geoNear" also return the distance, however I have not been able to find anywhere that explains how to use these in Appery.io application.
Can you help please?