接口地址:https://api.icofun.cn/api/your_script.php
返回格式:json/text
请求方式:GET
请求示例:https://api.icofun.cn/api/your_script.php?msg=长春&go=卫星广场&to=吉林广电
请求参数说明:
| 名称 | 必填 | 说明 | |
|---|---|---|---|
| msg | 是 | 需要查询的城市 | |
| go | 是 | 需要出发的起点 | |
| to | 是 | 需要出发的终点 | |
| type | 否 | 返回格式,默认json可选text | |
| hh | 否 | 换行符号(默认\n)(仅对text生效) |
返回示例:
{
"total_plans": 1,
"plans": [
{
"title": "方案1",
"price": "2元",
"stations": [
{
"name": "卫星广场",
"line_info": "3号线 长影世纪城方向(4站)",
"via_stations": "亚泰立交桥→伊通河→职业学院"
}
]
}
],
"extra_images": [
"https://static.hao86.com/oldtool/images/newditie/changchun.png"
]
}