C语言 c++ php mysql nginx linux lnmp lamp lanmp memcache redis 面试 笔记 ppt 设计模式 问题 远程连接

  2013年4月23日
摘要: /** * 根据经纬度计算距离 其中A($lat1,$lng1)、B($lat2,$lng2) * 注意弧度角度的计算 * 单位:km */ function _getDistance($lat1,$lng1,$lat2,$lng2) { //地球半径 $R = 6378.137; //km //将角度转为狐度 $radLat1 = deg2rad($lat1); $radLat2 = deg2rad($lat2); $radLng1 = de... 阅读全文
posted @ 2013-04-23 15:22 思齐_ 阅读(387) 评论(0) 推荐(0) 编辑