# 路线规划查询
# 企业班线查询
# 接口URL
- 测试环境: http://apitest.dudubashi.com/index.php/api/open/get_enterprise_all_lines
- 线上环境: http://wx.dudubashi.com/index.php/api/open/get_enterprise_all_lines
# 请求方法
post
# 请求参数
| 名称 | 类型 | 说明 | 是否必须 |
|---|---|---|---|
| token | string | 临时票据(有效期:2小时) | Y |
| city_name | string | 城市,例如:武汉(默认查询所有城市) | Y |
| start_place | string | 起点 | Y |
| end_place | string | 终点 | Y |
| page | int | 页码(每一页有5条数据) | Y |
| supplier_name | string | 供应商/车队名称,按名称匹配筛选线路 | N |
# 返回参数
| 名称 | 类型 | 说明 | 必须存在 |
|---|---|---|---|
| result | string | 结果状态码('0000': '操作成功') | Y |
| info | string | 结果提示语 | Y |
| data | string | 结果集 | Y |
| line_title | string | 班次标题 | Y |
| line_id | int | 班次id | Y |
| site_list | list | 站点列表 | Y |
| bus_code_list | list | 车牌列表 | Y |
| line_open_dates | list | 开通时间列表 | Y |
| is_free | int | 是否免费 | Y |
| supplier_name | string | 供应商/车队名称 | Y |
{
"result": "0000",
"info": "成功",
"data": [
{
"line_title": "工业园-泰然(外环)(工业园上车点7号站牌)",
"line_id": "477790",
"site_list": [
"工业园",
"泰然大厦"
],
"bus_code_list": [
"粵S28219D"
],
"line_open_dates": [
"周一至周五"
],
"is_free": 1,
"supplier_name": "深圳市立帆运输有限公司(oppo)"
},
{
"line_title": "工业园-春笋-后海-泰然(沿江)(工业园上车点1-4号站牌)",
"line_id": "477792",
"site_list": [
"工业园",
"振安商业广场公交站",
"景盛花园",
"上沙消防公交站",
"福海学校",
"春笋",
"后海",
"泰然4S店对面"
],
"bus_code_list": [],
"line_open_dates": [
"周一至周五"
],
"is_free": 0,
"supplier_name": "深圳市立帆运输有限公司(oppo)"
},
{
"line_title": "工业园-泰然(广深)(工业园上车点1-4号站牌)",
"line_id": "477722",
"site_list": [
"工业园",
"同晋五金广场",
"大润发",
"日昇大厦",
"陈屋牌坊",
"乌沙路口",
"泰然4S店对面"
],
"bus_code_list": [],
"line_open_dates": [
"周一至周五"
],
"is_free": 0,
"supplier_name": "深圳市立帆运输有限公司(oppo)"
}
]
}
# 查询附近站点
# 接口URL
- 测试环境: http://apitest.dudubashi.com/index.php/api/open/get_near_site
- 线上环境: http://wx.dudubashi.com/index.php/api/open/get_near_site
# 请求方法
post
# 请求参数
| 名称 | 类型 | 说明 | 是否必须 |
|---|---|---|---|
| token | string | 临时票据(有效期:2小时) | Y |
| lng | string | 当前位置经度 | Y |
| lat | string | 当前位置纬度 | Y |
| km | float | 查询半径,单位公里,默认2公里 | N |
| supplier_name | string | 供应商/车队名称,按名称匹配筛选线路 | N |
# 返回参数
| 名称 | 类型 | 说明 | 必须存在 |
|---|---|---|---|
| result | string | 结果状态码('0000': '操作成功') | Y |
| info | string | 结果提示语 | Y |
| data | list | 附近站点列表 | Y |
| site_name | string | 附近站点名称 | Y |
| distance | int | 当前位置到站点距离,单位米 | Y |
| distance_text | string | 距离展示文案,例如:100米内 | Y |
| list | list | 经过该附近站点的线路列表 | Y |
| supplier_name | string | 供应商/车队名称;站点层为该站点下线路供应商汇总,线路层为该线路供应商 | Y |
| ltb_line_id | string | 线路ID | Y |
| line_title | string | 线路名称 | Y |
| line_start_time | string | 线路发车时间,例如:07:00 | Y |
| time_range | string | 线路预计耗时,可能为空 | Y |
| line_price | string | 线路票价 | Y |
| line_our_code | string | 线路编码/展示编号 | Y |
| site_lng | string | 命中站点经度 | Y |
| site_lat | string | 命中站点纬度 | Y |
| from_site | string | 线路起点站名称 | Y |
| from_bus_time | string | 起点站发车时间 | Y |
| from_site_id | string | 起点线路站点ID | Y |
| from_site_lng | string | 起点站经度 | Y |
| from_site_lat | string | 起点站纬度 | Y |
| to_site | string | 线路终点站名称 | Y |
| to_bus_time | string | 终点站计划时间 | Y |
| to_site_id | string | 终点线路站点ID | Y |
| to_site_lng | string | 终点站经度 | Y |
| to_site_lat | string | 终点站纬度 | Y |
| site_list | list | 线路完整站点列表 | Y |
| ltb_line_site_id | string | 线路站点ID | Y |
| bus_site_id | string | 基础站点ID | Y |
| line_id | string | 所属线路ID | Y |
| bus_time | string | 站点计划时间 | Y |
| is_show | string | 站点是否展示,1表示展示 | Y |
| street_img | list | 站点街景/指引图片数组 | Y |
| street_view | string | 街景信息,可能为空 | Y |
| site_desc | string | 站点描述或上车指引 | Y |
# 返回数据示例(json格式)
{
"result": "0000",
"data": [
{
"site_name": "大运地铁站-6口(马路旁)",
"distance": 0,
"distance_text": "100米内",
"list": [
{
"ltb_line_id": "707652",
"line_title": "大运地铁站公交站-滨海湾园区(小西门)",
"line_start_time": "07:00",
"time_range": "",
"line_price": "7.00",
"line_our_code": "滨海湾(龙岗线)",
"site_name": "大运地铁站-6口(马路旁)",
"site_lng": "114.234234",
"site_lat": "22.690969",
"from_site": "大运地铁站-6口(马路旁)",
"from_bus_time": "07:00",
"from_site_id": "584514",
"from_site_lng": "114.234234",
"from_site_lat": "22.690969",
"to_site": "滨海湾园区(小西门)",
"to_bus_time": "09:00",
"to_site_id": "584524",
"to_site_lng": "113.743369",
"to_site_lat": "22.763162",
"site_list": [
{
"ltb_line_site_id": "584514",
"bus_site_id": "299606",
"line_id": "707652",
"site_name": "大运地铁站-6口(马路旁)",
"bus_time": "07:00",
"is_show": "1",
"site_lng": "114.234234",
"site_lat": "22.690969",
"street_img": [
"https://oss.dudubashi.com/images/common/1770103324.png"
],
"street_view": "",
"site_desc": "大运地铁站6口出来公交站往右走30米马路旁"
},
{
"ltb_line_site_id": "584524",
"bus_site_id": "310230",
"line_id": "707652",
"site_name": "滨海湾园区(小西门)",
"bus_time": "09:00",
"is_show": "1",
"site_lng": "113.743369",
"site_lat": "22.763162",
"street_img": [],
"street_view": "",
"site_desc": "广东省东莞市S3(广深沿江高速)"
}
],
"distance": 0,
"supplier_name": "深圳市立帆运输有限公司(oppo)"
}
],
"supplier_name": "深圳市立帆运输有限公司(oppo)"
}
],
"info": "成功"
}