amap_distance
Calculate driving distance and time from multiple origins to one destination. Compare accessibility of different starting points using straight-line, driving, walking, or cycling distances.
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": "amap_distance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | 0=直线距离, 1=驾车距离, 2=步行距离(限5km内), 3=骑行距离(限20km内) | |
| origins | Yes | 起点坐标列表,最多10个,用|分隔,如 116.38,39.92|116.46,39.99 | |
| destination | Yes | 终点坐标(lng,lat) |