* */public function getdistanceAction(){ $lng1=117.27; //经度1 $lat1=31.86; //纬度1 $lng2=120.19; //经度2 $lat2=30.26; //纬度2 $EARTH_RADIUS = 6378137; //地球半径 $RAD = pi() / 180.0; $radLat1 = $lat1 * $RAD; $radLat2 = $lat2 * $RAD;