摘要: 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 阅读全文
posted @ 2019-04-23 17:41 酷酷的城池 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 来源public function geo(){ $redis = new \redis(); $redis -> connect('127.0.0.1',6379); //位置增加 $res= $redis->geoAdd("cs",13.361389,38.115556,'peter',13.3 阅读全文
posted @ 2019-04-23 14:12 酷酷的城池 阅读(642) 评论(0) 推荐(0) 编辑