I am working on an Android app that checks if two users are geographically nearby each other (getting the distance between the two co-ordinates in meters, to be precise). While this question correctly answers how to do that, I am more interested in possibility of calculating the distance without actually using the co-ordinates.
Why? The calculation will be done on server-side. I don't want to pass the user's location details to my server since that can amount to privacy concerns.
One way I could think of achieving this was by determining the distance between the user's current location and an arbitrary point and then passing this distance to the server. But I am not sure how accurate that would be.
Is this possible? How?