maps_direction_driving
Plan driving routes with options for waypoints, route strategy, license plate restrictions, and avoidance areas. Returns directions between coordinates.
Instructions
驾车路径规划(路径规划 2.0,v5 接口)。支持途经点、算路策略、车牌限行规避、避让区域等。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ferry | No | (可选)是否使用轮渡:0 使用(默认)、1 不使用 | |
| plate | No | (可选)车牌号,如"京AHA322",用于规避限行路段,支持 6 位传统和 7 位新能源车牌 | |
| origin | Yes | 起点坐标,格式"经度,纬度" | |
| cartype | No | (可选)车辆类型:0 普通燃油(默认)、1 纯电动、2 插电混动 | |
| strategy | No | (可选)算路策略,默认 32(高德推荐)。可选:0 速度优先、1 费用优先、2 常规最快、32 高德推荐、33 躲避拥堵、34 高速优先、35 不走高速、36 少收费、37 大路优先、38 速度最快、39-45 组合策略 | |
| origin_id | No | (可选)起点 POI ID,填写可提升规划精度 | |
| waypoints | No | (可选)途经点坐标串,多个用英文分号分隔,最多 16 个,格式"经度,纬度;经度,纬度" | |
| destination | Yes | 终点坐标,格式"经度,纬度" | |
| show_fields | No | (可选)控制返回字段,多个用逗号分隔。可选:cost(费用/耗时)、tmcs(路况详情)、navi(导航动作)、cities(途径城市)、polyline(坐标串) | |
| avoidpolygons | No | (可选)避让区域坐标串,多个区域用 | 分隔,每个区域最多 16 个顶点,最多 32 个区域 | |
| destination_id | No | (可选)终点 POI ID,填写可提升规划精度 | |
| destination_type | No | (可选)终点 POI 类别,如"餐饮" |