## 价格距离
>接口说明
计算配送距离和价格
>接口请求说明
HTTP请求格式: application/json
>接口参数说明
~~~[api]
get:/api/miniapp/payments/distanceAndFee?sessionId=
*string:sessionId#sessionID
*string:companyId#公司ID
*double:lat#取件维度
*double:lng#取件经度
*double:lat#送件维度
*double:lng#送件经度
<<<
success
{
"distance": 26.2,
"fee": 58,
"monthlySettlement": false
}
<<<
error
{
"path": "/api/miniapp/payments/distanceAndFee",
"message": "公司不存在或状态异常!",
"status": 406,
"timestamp": 1515572920751
}
~~~
>接口请求示例
~~~
{
"companyId":"34",
"from":{
"lng":120.3714,
"lat":30.3103
},
"to":{
"lng":120.15731528212,
"lat":30.239805393577
}
}
~~~