- api-passenger
- service-verificationCode
- service-passenger-user
- service-price
- service-map
- service-driver-user
- api-boos
- api-driver
- service-order
- service-sse-push
计算预估价格
开发中
POST
/forecast-price
请求参数
Body 参数application/json
depLongitude
string
必需
depLatitude
string
必需
destLongitude
string
必需
destLatitude
string
必需
cityCode
string
必需
vehicleType
string
必需
示例
{
"depLongitude": "string",
"depLatitude": "string",
"destLongitude": "string",
"destLatitude": "string",
"cityCode": "string",
"vehicleType": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/forecast-price' \
--header 'Content-Type: application/json' \
--data-raw '{
"depLongitude": "string",
"depLatitude": "string",
"destLongitude": "string",
"destLatitude": "string",
"cityCode": "string",
"vehicleType": "string"
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
price
number
必需
cityCode
string
必需
vehicleType
string
必需
fareType
string
必需
fareVersion
integer
必需
示例
{
"code": 0,
"message": "string",
"data": {
"price": 0,
"cityCode": "string",
"vehicleType": "string",
"fareType": "string",
"fareVersion": 0
}
}
修改于 2022-11-30 12:00:47