查看选中车辆的轨迹
访问---- 删除掉了,格式有一点点的区别
http://app.14698.com/api.php/map/sameway_realtime_track?mid=39&password=e10adc3949ba59abbe56e057f20f883e&aid=11&filename=102to7_840023.json
说明
通过后台运算得到顺风车的数据
请求接口
/Map/sameway_realtime_track?
测试接口url
| 参数 | 类型 | 必选 | 说明 |
|---|---|---|---|
| mid | char | 是 | 用户编号 |
| password | char | 是 | 密码明文 |
| filename | int | 是 | 需要请求的文件名(服务器本地存储好的上次的请求数据)规则为 ,自己的aid 加上 to 加上,对方的 aid,如,自己的 aid 为 1,对方的为11,则 filename 为 1to11 |
接口返回
正确
{
"err": 0,
"msg": "获取成功",
"content": {
"status": 0,
"size": 0,
"total": 0,
"entity_name": 0,
"distance": 0,
"points": [
{
"loc_time": 1465209852,
"location": [
114.17678837273,
22.599215327678
],
"create_time": "2016-06-06 18:44:12",
"radius": 0
},
{
"loc_time": 1465209852,
"location": [
114.17676825069,
22.599395503235
],
"create_time": "2016-06-06 18:44:12",
"radius": 0
},
{
"loc_time": 1465209852,
"location": [
114.17674830831,
22.599585688286
],
"create_time": "2016-06-06 18:44:12",
"radius": 0
}
]
},
"more_data": ""
}
错误
{
"err": 1,
"msg": "账号密码不适配",
"content": "",
"more_data": ""
}
返回值说明
| 参数 | 类型 | 说明 |
|---|---|---|
| err | int | 操作码,0代表成功 |
| msg | char | 返回消息 |
| content | - | |
| lng | float | 经度 |
| lat | float | 纬度 |