通过站点名称查询线路信息
测试地址:
{url}/dev-api/customer/livebus/linesStation
生产地址:
{url}/api/customer/livebus/linesStation
具体请求
header:
| 请求参数 | 值 | 说明 |
|---|---|---|
| Authorization | access_token | 这里传登录获取的access_token |
body:
请求参数说明
| 参数名 | 类型 | 是否必填 | 说明 | 示例 |
|---|---|---|---|---|
| stationName | String | 是 | 站点名称 | 花园路艾科路口 |
响应参数
成功响应示例
{"msg": "操作成功","code": 200,"data": [{"price": 2.00,"oneList": [{"firstTime": "06:20:00","lastTime": "18:16:00","originStationName": "站北花园北门","flag": "1","theOtherBusAwayFrom": 1000,"sn": 40,"nextBusAwayFrom": 1000,"nextBusStationName": "未发车","runStatus": 0,"terminateStationName": "花园路北首"},{"firstTime": "06:20:00","lastTime": "18:16:00","originStationName": "花园路北首","flag": "2","theOtherBusAwayFrom": 1000,"sn": 2,"nextBusAwayFrom": 1000,"nextBusStationName": "未发车","runStatus": 0,"terminateStationName": "站北花园北门"}],"lineId": "105","lineName": "K5路"},{"price": 2.00,"oneList": [{"firstTime": "07:18:00","lastTime": "17:44:00","originStationName": "区武装部","flag": "2","theOtherBusAwayFrom": 1000,"sn": 27,"nextBusAwayFrom": 1000,"nextBusStationName": "未发车","runStatus": 0,"terminateStationName": "北外环白庄西站"},{"firstTime": "06:30:00","lastTime": "16:56:00","originStationName": "北外环白庄西站","flag": "1","theOtherBusAwayFrom": 1000,"sn": 5,"nextBusAwayFrom": 1000,"nextBusStationName": "未发车","runStatus": 0,"terminateStationName": "区武装部"}],"isCollect": 2,"lineId": "138","lineName": "K138路"}]}
失败响应示例
响应参数说明
| 参数名 | 说明 | 备注 |
|---|---|---|
| code | 返回码 | 为200表示成功,非200表示调用失败,其他错误码请见返回码说明 |
| data | 返回数据 | |
| isCollect | 是否收藏 | 1:是;2:否 |
| msg | 返回码的文本描述内容 |
注意事项:
暂无
