百度地图坐标点轨迹画线php,夏末浅笑

编程入门 行业动态 更新时间:2024-10-21 13:23:49

百度地图坐标点<a href=https://www.elefans.com/category/jswz/34/1767247.html style=轨迹画线php,夏末浅笑"/>

百度地图坐标点轨迹画线php,夏末浅笑

后端php返回json数据

public function check_ajax(){

if(request()->isAjax()){

$phone_str = $this->request->post('phone_str');

$start_time = $this->request->post('start_time');

$end_time = $this->request->post('end_time');

$phone = substr($phone_str,7);

$data0 = Db::name('ship') -> where(['phone' => $phone]) ->select();

foreach ($data0 as $key => $value){

$id = $value['id'];

}

//条件查询

$map['cmf_ship.id'] = ['=',"$id"];

$map['cmf_locus.time'] = array('between',array("$start_time","$end_time"));

$map['cmf_locus.position'] = ['=',"定位"];

$map['cmf_locus.alarm'] = ['=',"一切正常"];

$data = Db::name('locus')

->alias('a')

->join('cmf_ship b','a.ship_id = b.id','left')

->field('a.id,a.time,a.ship_id,a.latitude,a.longitude,a.speed,a.height,a.direction,b.id,b.phone,b.captain,b.name')

->where($map)

->order('time' )

->select();

return $data ;

}

}

前端html代码

百度

content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">

更多推荐

百度地图坐标点轨迹画线php,夏末浅笑

本文发布于:2024-02-05 09:40:18,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1744513.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:轨迹   夏末   画线   地图   坐标点

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!