每次请求API接口:0.00000 元
接口地址:https://api.178v.cn/api/cjxl/api.php
返回格式:application/json
请求方式:GET/POST
请求示例:https://api.178v.cn/api/cjxl/api.php?apikey=你开通的apikey&from=出发地&to=目的地
| 名称 | 必填 | 类型 | 说明 |
|---|---|---|---|
| apikey | 是 | string | 你开通的apikey |
| from | 是 | string | 出发地 |
| to | 是 | string | 目的地 |
| 名称 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| msg | string | 状态信息 |
| from | string | 出发地 |
| to | string | 目的地 |
| data | string | 返回内容 |
| corese | string | 路线 |
| distance | string | 总距离 |
| time | string | 总耗时 |
| fuelcosts | string | 油费 |
| bridgetoll | string | 过桥费 |
| totalcost | string | 总费用 |
| roadconditions | string | 路况 |
{
"code": 200,
"msg": "查询成功",
"from": "广州",
"to": "深圳",
"data": {
"corese": "广州->深圳",
"distance": "137.54(公里)",
"time": "2(小时)",
"fuelcosts": "83(元)",
"bridgetoll": "65(元)",
"totalcost": "148(元)",
"roadconditions": "中山五路 ——> 解放北路 ——> 三元里大道 ——> 机场高速公路 ——> 广州环城高速公路 ——> 沈海高速公路 ——> 京港澳高速公路 ——> 福田立交 ——> 深南大道 ——> 一号路 ——> 深南大道 ——> 福中三路 ——> 终点"
},
"api_source": "官方API网:https://api.178v.cn/",
"time": "2024-11-29 20:53:58",
"elapsed_time": "2007.703066ms"
}
| 错误码 | 说明 |
|---|---|
| 100 | 您的apikey值为空! |
| 101 | 您的apikey值不存在! |
| 102 | 当前来源地址不在白名单内! |
| 103 | 当前接口为实名认证后可用,请您先进行实名! |
| 104 | 当前接口为企业认证后可用,请您先进行企业认证! |
| 105 | 当前接口未通过审核或已停止运营! |
| 106 | 您的余额不足,请及时充值! |
| 107 | 您当前的接口免费期限已过期,请及时开通! |
| 108 | 您的点数包已过期,请及时续费! |
| 109 | 您的点数包已用完,请及时充值! |
| 110 | 您的账号已被封禁,不可使用任何接口! |