车辆运输GPS载重接口

简要描述
  • 获取车辆一段时间的轨迹载重和趟数数据接口
请求URL
  • http://39.106.19.95:81/shippers-portorder/assets/truckGpsWeightAndNum
请求方式
  • POST
参数
参数名 必选 类型 说明
truckno string 车号,多个车号用逗号隔开;如鲁A12345,鲁A23456;轨迹回放该参数不能为空且只能为一个车辆
startTime string 开始时间 yyyy-MM-dd HH:mm:ss
endTime string 结束时间
type string 不传返回轨迹载重数据及趟数;1:返回轨迹和载重数据;2:返回趟数数据 注:type为1或者不传时,车号时间不能为空 为2时,时间不能为空
返回示例
{
  "code": 200,
  "success": true,
  "sum": 2,
  "data": {
    "msg": "",
    "truckWeightDetails": [
      {
        "id": 182,
        "longitude": 121.385787,
        "latitude": 37.583796,
        "truckno": "港Z00022",
        "deviceno": "868120255323724",
        "altitude": 0,
        "speed": 0,
        "direction": 0,
        "gpstime": "2021-03-06 17:52:17",
        "inputtime": "2021-03-06 17:53:10",
        "weight": 0,
        "ad": "32962",
        "acc": 0,
        "distance": 21611345,
        "extend": "",
        "loadobj": "",
        "loadstatus": "online",
        "deviceStatus": "online"
      },
      {
        "id": 183,
        "longitude": 121.385787,
        "latitude": 37.583796,
        "truckno": "港Z00022",
        "deviceno": "868120255323724",
        "altitude": 0,
        "speed": 0,
        "direction": 0,
        "gpstime": "2021-03-06 17:52:17",
        "inputtime": "2021-03-06 17:53:20",
        "weight": 0,
        "ad": "32961",
        "acc": 0,
        "distance": 21611345,
        "extend": "",
        "loadobj": "",
        "loadstatus": "online",
        "deviceStatus": "online"
      }
    ],
    "numMap": [
      {
        "id": 1,
        "truckno": "港Z00022",
        "deviceno": "868120255323724",
        "starttime": "2021-03-06 17:19:55",
        "endtime": "2021-03-06 17:21:38",
        "peak": 18.565,
        "distance": -1,
        "intime": "2021-03-06 17:32:52"
      },
      {
        "id": 2,
        "truckno": "港Z00022",
        "deviceno": "868120255323724",
        "starttime": "2021-03-06 17:27:55",
        "endtime": "2021-03-06 17:31:25",
        "peak": 30.1,
        "distance": -1,
        "intime": "2021-03-06 17:32:52"
      }
    ]
  },
  "msg": "操作成功"
}
返回参数说明
参数名 类型 说明
truckWeightDetails Object GPS载重数据列表
truckno String 车号
deviceno String 设备号
weight Double 载重
speed Double 速度
longitude Double 经度
latitude Double 维度
gpstime Date gps时间
ad String ad值
acc Integer acc
distance Double 行驶里程
deviceStatus String gps状态(在线online,离线offline)
loadstatus String 载重状态(在线online,离线offline)
numMap Object 趟数信息
sum String 总趟数
ytPortLoadNumber Object 趟数列表
starttime 此趟拉货开始时间
endtime 此趟卸货完成时间
peak 拉货载重
distance 拉货距离
备注

欢迎使用ShowDoc!