计算距离的逻辑是从Android的提供的接口(Location.distanceBetw
程序员文章站
2022-04-08 16:54:50
...
参考了http://blog.sina.com.cn/s/blog_7b83134b0101i4xs.html 无 ?phpfunction computeDistance($lat1, $lon1, $lat2, $lon2) { // Based on http://www.ngs.noaa.gov/PUBS_LIB/inverse.pdf // using the "Inverse Formula" (section 4) $MAXITERS = 20; //
参考了http://blog.sina.com.cn/s/blog_7b83134b0101i4xs.html