获取某条线路上的所有车辆
测试地址:
{url}/dev-api/customer/livebus/queryLineVeh?flag=1&lineName=K330路
生产地址:
{url}/api/customer/livebus/queryLineVeh?flag=1&lineName=K330路
HTTP Method:GET
Content-Type:application/x-www-form-urlencoded
具体请求
header:
请求参数 | 值 | 说明 |
---|---|---|
Authorization | access_token | 这里传登录获取的access_token |
body:
请求参数说明
参数名 | 类型 | 是否必填 | 说明 | 示例 |
---|---|---|---|---|
flag | String | 是 | 方向 | 1 |
lineName | String | 是 | 线路名 | K330路 |
响应参数
成功响应示例
{
"msg": "操作成功",
"code": 200,
"data": [
{
"lng": 115.9986424978368,
"updateTime": "2022-03-02 17:06:14",
"nextStationDistance": 321.0,
"plateNumber": "鲁PD2727",
"nextStationSn": null,
"nextStationTime": 0,
"nextStationName": "花园利民路口南",
"lat": 36.44640673510647
},
{
"lng": 115.99849847004502,
"updateTime": "2022-03-02 17:06:15",
"nextStationDistance": 258.0,
"plateNumber": "鲁PD2297",
"nextStationSn": null,
"nextStationTime": 0,
"nextStationName": "花园路建设路口南",
"lat": 36.46910918386372
},
{
"lng": 115.99854280795996,
"updateTime": "2022-03-02 17:06:16",
"nextStationDistance": 390.0,
"plateNumber": "鲁PD2059",
"nextStationSn": null,
"nextStationTime": 1,
"nextStationName": "花园路兴华路口北",
"lat": 36.46161100282063
},
{
"lng": 115.96387996102764,
"updateTime": "2022-03-02 17:04:41",
"nextStationDistance": 303.0,
"plateNumber": "鲁PC9203",
"nextStationSn": null,
"nextStationTime": 0,
"nextStationName": "香江发车区",
"lat": 36.47279171334738
},
{
"lng": 115.95466209255123,
"updateTime": "2022-03-02 17:06:14",
"nextStationDistance": 230.0,
"plateNumber": "鲁PD9363",
"nextStationSn": null,
"nextStationTime": 0,
"nextStationName": "市人社局",
"lat": 36.46911888432816
},
{
"lng": 115.94601394255551,
"updateTime": "2022-03-02 17:06:10",
"nextStationDistance": 38.0,
"plateNumber": "鲁PD2681",
"nextStationSn": null,
"nextStationTime": 0,
"nextStationName": "火车站",
"lat": 36.455998959155394
}
]
}
失败响应示例
响应参数说明
注意事项:
暂无