amap_direction_driving
Plan driving routes with start and end points. Receive route details: distance, time, steps, tolls, traffic lights. Select strategies for speed, cost, distance, or congestion avoidance.
Instructions
驾车路径规划。传入起点/终点(支持坐标或地址),返回最优路线——含总距离、预计时间、沿途步骤、过路费、红绿灯数。strategy: 0=速度优先, 1=费用优先, 2=距离优先, 3=躲避拥堵(不走快速路), 4=躲避拥堵&速度优先, 5=多策略对比。
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": "amap_direction_driving"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origin | Yes | 起点,支持坐标(lng,lat)或地址 | |
| strategy | No | 策略: 0-速度优先, 1-费用优先, 2-距离优先, 3-躲避拥堵, 4-躲避拥堵&速度优先, 5-多策略 | |
| avoidroad | No | 避开路段名称 | |
| waypoints | No | 途经点,最多16个,坐标用;分隔,如 116.46,39.92;116.47,39.93 | |
| destination | Yes | 终点,支持坐标(lng,lat)或地址 | |
| origin_type | No | origin为坐标时填1,地址时填0或不传 | |
| avoidpolygons | No | 避开区域,格式 lng,lat;lng,lat;...(多边形) | |
| destination_type | No | destination为坐标时填1,地址时填0或不传 |