- api-passenger
- service-verificationCode
- service-passenger-user
- service-price
- service-map
- service-driver-user
- api-boos
- api-driver
- service-order
- service-sse-push
根据出发和目的地计算距离和时长
开发中
GET
/direction/driving
请求参数
Body 参数application/json
depLongitude
string
必需
depLatitude
string
必需
destLongitude
string
必需
destLatitude
string
必需
示例
{
"depLongitude": "string",
"depLatitude": "string",
"destLongitude": "string",
"destLatitude": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/direction/driving' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
distance
integer
必需
duration
integer
必需
示例
{
"code": 0,
"message": "string",
"data": {
"distance": 0,
"duration": 0
}
}
修改于 2022-11-21 02:30:57