map_distance
Compute the distance and estimated travel time between two geographic coordinates for driving or walking routes.
Instructions
距离测量:计算两点间的距离和预计耗时。mode 为 driving(驾车)或 walking(步行)。起终点为'经度,纬度'坐标。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"origin": "<origin>",
"destination": "<destination>"
},
"name": "map_distance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 测量方式:driving 驾车 / walking 步行 | driving |
| origin | Yes | 起点坐标,格式'经度,纬度' | |
| platform | No | Map platform to use. Defaults to 'amap'. | amap |
| destination | Yes | 终点坐标,格式'经度,纬度' |