摘要:
SELECT id,lng,lat,ROUND(6378.138*2*ASIN(SQRT(POW(SIN((lat1*PI()/180-lat*PI()/180)/2),2)+COS(lat1*PI()/180)*COS(lat*PI()/180)*POW(SIN((lng1*PI()/180-ln 阅读全文
摘要:
来源public function geo(){ $redis = new \redis(); $redis -> connect('127.0.0.1',6379); //位置增加 $res= $redis->geoAdd("cs",13.361389,38.115556,'peter',13.3 阅读全文