Skip to content

运单轨迹查询 ​

请求地址 ​

https://www.xxyb.cn/union/api/wlpt/consignor/queryWaybillTrajectory

参数名必选类型说明
Token是string应用令牌
cid是string合作ID
corpId是string企业ID

请求参数 ​

参数名必选类型层级说明备注
id是string1运单ID

入参示例 ​

json
{
  "id": "B123456789"
}

返回参数 ​

参数名类型层级说明备注
codeint1状态码
msgstring1请求结果
totalint1返回总条数
requestIdstring1请求编号
dataobject1返回数据
trajectoryListarray2账户信息
locationTypeenum3定位类型见下方 定位类型代码
licensePlateNumberstring3车牌号
locationAddressstring3定位地址
locationProvincestring3定位省份
locationCitystring3定位市
locationAreastring3定位区
latdecimal3纬度
londecimal3经度
latdecimal3高德纬度
londecimal3高德经度
directionstring3方向
aglstring3方向 原始数据
speedstring3速度 (km/h)
highstring3高度
mileagestring3里程
locationTimedate3定位时间
locationStatusboolean3定位是否成功
descriptionstring3描述
remarkstring3备注

反参示例 ​

json
{
  "code": 200,
  "data": {
    "trajectoryList": [
      {
        "locationType": "GPS",
        "licensePlateNumber": "京A12345",
        "locationAddress": "北京市海淀区",
        "locationProvince": "北京市",
        "locationCity": "北京市",
        "locationArea": "海淀区",
        "lat": 39.9978,
        "lon": 116.3182,
        "direction": "北",
        "agl": "30",
        "speed": "60",
        "high": "100",
        "mileage": "1200",
        "locationTime": "2023-10-01T12:00:00Z",
        "description": "车辆正在行驶中",
        "remark": "无"
      },
      {
        "locationType": "BEI_DOU",
        "licensePlateNumber": "京B67890",
        "locationAddress": "上海市浦东新区",
        "locationProvince": "上海市",
        "locationCity": "上海市",
        "locationArea": "浦东新区",
        "lat": 31.2304,
        "lon": 121.4737,
        "direction": "东",
        "agl": "45",
        "speed": "50",
        "high": "90",
        "mileage": "1500",
        "locationTime": "2023-10-01T14:30:00Z",
        "description": "车辆已到达目的地",
        "remark": "无"
      }
    ]
  },
  "msg": "业务处理成功",
  "total": null,
  "requestId": "1eb7cb0e"
}

定位类型代码(LocationTypeEnum):

NameMessage
BEI_DOU北斗
AISAIS
GPSGPS
APPAPP
APPLET小程序