geohash 精度

关于地图的距离。

 $list1=Db::name('museum')->where('id','in',$user['gz'])->order('ACOS(SIN(('.$lat.' * 3.1415) / 180 ) *SIN((lat * 3.1415) / 180 ) +COS(('.$lat.' * 3.1415) / 180 ) * COS((lat * 3.1415) / 180 ) *COS(('.$lon.' * 3.1415) / 180 - (lng * 3.1415) / 180 ) ) * 6380')->select(); 
 
 

Geohash的精度问题 https://segmentfault.com/a/1190000002513514

原文地址:https://www.cnblogs.com/F4NNIU/p/7762106.html