How to calculate the distance between two GPS coordinates without using Google Maps API?

前端 未结 7 1138
小鲜肉
小鲜肉 2020-12-08 02:56

I\'m wondering if there\'s a way to calculate the distance of two GPS coordinates without relying on Google Maps API.

My app may receive the coordinates in float or

7条回答
  •  醉话见心
    2020-12-08 03:29

    I'm not sure of any prepackaged solution, but it seems a fairly straightforward calculation: http://www.movable-type.co.uk/scripts/latlong.html

提交回复
热议问题