当前位置:Gxlcms > 数据库问题 > 指定经纬度与数据库多条经纬度进行距离计算

指定经纬度与数据库多条经纬度进行距离计算

时间:2021-07-01 10:21:17 帮助过:18人阅读

,30.225778 示例对比的坐标 select * from broadcasts where location!=‘‘ and sqrt( ( ((121.308364-longitude)*PI()*12656*cos(((30.225778+latitude)/2)*PI()/180)/180) * ((121.308364-longitude)*PI()*12656*cos (((30.225778+latitude)/2)*PI()/180)/180) ) + ( ((30.225778-latitude)*PI()*12656/180) * ((30.225778-latitude)*PI()*12656/180) ) )<20

 

指定经纬度与数据库多条经纬度进行距离计算

标签:指定   git   对比   long   经纬度   select   ati   sqrt   code   

人气教程排行