/**
* 首先创建好ak与鹰眼服务
* 创建一个entity
* PSOT:http://yingyan.baidu.com/api/v3/entity/add
*/
{
"ak":"你的ak",
"service_id":"你的server_id",
"entity_name":"单个实体(汽车)的标识",
"entity_desc":"可读性描述"
}
//返回
{"status":0,"message":"成功"}
/**
* 批量上传轨迹点
* POST:http://yingyan.baidu.com/api/v3/track/addpoints
*/
{
"ak":"你的ak",
"service_id":"你的server_id",
"point_list":[{//list中轨迹点不可超过100个,且不可超过1000string
"entity_name":"单个实体(汽车)的标识",
"latitude":39.922502,//纬度
"longitude":116.459012,//经度
"loc_time":1488785466,//定位时间不可大于当前时间十分钟以上
"coord_type_input":"wgs84"//坐标类型
}]
}
/**
* 查询轨迹并纠偏
* GET:http://yingyan.baidu.com/api/v3/track/gettrack
*
* http://yingyan.baidu.com/api/v3/track/gettrack
* ?ak=KlW5e9YMKaXbNsogxcuOCEXQs38PVY8l
* &service_id=204041
* &entity_name=testEntity01
* &start_time=1534478400
* &end_time=1534497859
* &is_processed=1
* &process_option=need_mapmatch=1
*/
官方文档:http://lbsyun.baidu.com/index.php?title=yingyan/guide/hello