经纬度距离计算(转)

原文地址:http://blog.chinaunix.net/uid-26602509-id-4465799.html

 

select ACOS(SIN(('.$lat.' * 3.1415) / 180) * SIN((latitude * 3.1415) / 180) +

            COS(('.$lat.' * 3.1415) / 180) * COS((latitude * 3.1415) / 180) *

            COS(('.$lon.' * 3.1415) / 180 - (longitude * 3.1415) / 180)) * 6380

  from dual

 

 

其它资料:http://www.open-open.com/lib/view/open1421650750328.html

 

猜你喜欢

转载自java12345678.iteye.com/blog/2245402
今日推荐