I have to get distance from different markers on the map to the current location of the device and the pick up the shortest one. I have the lat and long for the markers and
This code could help you getting the distances: https://github.com/BeyondAR/beyondar/blob/master/android/BeyondAR_Framework/src/com/beyondar/android/util/math/Distance.java