maps_distance
Calculate straight-line, driving, or walking distance between coordinates. Supports multiple origin points; provide origin(s) and a destination.
Instructions
测量起点到终点的距离(直线距离、驾车距离或步行距离)。
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": {
"origins": "<origins>",
"destination": "<destination>"
},
"name": "maps_distance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | (可选)测量类型:0 直线距离、1 驾车距离(默认)、3 步行距离 | |
| origins | Yes | 起点坐标,支持多点用 | 分隔,格式"经度,纬度|经度,纬度" | |
| destination | Yes | 终点坐标,格式"经度,纬度" |