参考了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