How to calculate distance from different markers in a map and then pick up the least one

后端 未结 9 1014
野趣味
野趣味 2020-12-05 08:53

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

9条回答
  •  既然无缘
    2020-12-05 09:25

    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

提交回复
热议问题