laravel sql 计算经纬度
$list = DB::table('invite_info as a')
->leftJoin("fans as b","a.seller_id","=","b.id")
->where($selectData)
->selectRaw("(ACOS(SIN(( $latitude * 3.1415) / 180 ) *SIN((tf_a.latitude * 3.1415) / 180 )
+COS(( $latitude * 3.1415) / .
原创
2021-09-28 14:58:42 ·
373 阅读 ·
0 评论