Laravel 框架根据经纬度计算在一定距离内的数据

$model = DB::table('table_name'); public static function scope_distance($model, $from_latitude, $from_longitude, $distance) { $raw = DB::raw("round(st
posted @ 2023-02-22 15:35  xiager  阅读(78)  评论(0编辑  收藏  举报