map_direction
Calculate route between two coordinates. Supports driving, walking, transit, and riding modes with distance, duration, and turn-by-turn directions.
Instructions
路径规划:计算两点间的路线,支持驾车(driving)、步行(walking)、公交(transit)、骑行(riding)。返回总距离、总时长和分段导航。起终点为'经度,纬度'坐标。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | 公交(transit)模式建议提供城市名或 citycode | |
| mode | No | 出行方式:driving 驾车 / walking 步行 / transit 公交 / riding 骑行 | driving |
| origin | Yes | 起点坐标,格式'经度,纬度' | |
| platform | No | Map platform to use. Defaults to 'amap'. | amap |
| destination | Yes | 终点坐标,格式'经度,纬度' |