企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
#### 接口URL `https://wx.jingjiang.red/addons/make_speed/core/public/index.php/apis/v2/get_delivery_price?token=de146aa4-a84c-42d8-9f91-318ab44b6571&fromcoord=39.92733,116.358276&tocoord=39.92733,116.504304&shop_id=1111` #### 请求方式 `GET` #### 请求Query参数 | 参数 | 示例值 | 必填 | 参数描述 | | --- | --- | --- | --- | | token | de146aa4-a84c-42d8-9f91-318ab44b6571 | 必填 | 获取令牌接口获取 | | fromcoord | 39.92733,116.358276 | 必填 | 起点地址坐标 以逗号分割的经纬度 第一个维度 如39.983171,116.308479 | | tocoord | 39.92733,116.504304 | 必填 | 终点地址坐标 以逗号分割的经纬度 第一个维度 如39.983171,116.308479 | | shop\_id | 1111 | 必填 | 大客户对接店铺ID,未购买大客户插件无需填写。但建议使用大客户插件,这样对接的每个商户都可以在跑腿后台对应设置一个大客户并单独计费扣费 | #### 响应参数 | 参数 | 参数描述 | | --- | --- | | total\_price | 配送价格 | | distance | 距离 单位km | | init | 起步价 | | premium | 溢价 | | night\_price | 夜间价格 | | mileage\_price | 里程费 | #### 成功响应示例 ~~~ { "error_code": 0, "msg": "success", "data": { "distance": "12.47", "init": "1.00", "total_price": "1.00", "mileage price": "0.00", "night_price": "0.00", "premium": "0.00" } } ~~~ #### 失败响应示例 ~~~ { "msg": "tocoord坐标格式不正确", "error_code": 10000, "request_url": "\/addons\/make_speed\/core\/public\/index.php\/apis\/v2\/get_delivery_price?token=de146aa4-a84c-42d8-9f91-318ab44b6571&fromcoord=39.92733,116.358276&tocoord=39.92733.116.504304&id=0" } ~~~