问题:
How do I calculate the distance between two points specified by latitude and longitude? 如何计算经度和纬度指定的两点之间的距离?
For clarification, I'd like the distance in kilometers; 为了澄清起见,我想要以千米为单位的距离; the points use the WGS84 system and I'd like to understand the relative accuracies of the approaches available. 这些要点使用WGS84系统,我想了解可用方法的相对准确性。
解决方案:
参考一: https://stackoom.com/question/7GS/计算两个经度点之间的距离-Haversine公式参考二: https://oldbug.net/q/7GS/Calculate-distance-between-two-latitude-longitude-points-Haversine-formula
来源:oschina
链接:https://my.oschina.net/u/3797416/blog/3275285