maps_direction_transit_integrated
Plan public transit routes by bus, subway, train, or intercity travel using origin and destination coordinates, with options for cost, transfers, walking, and departure time.
Instructions
公共交通路径规划(路径规划 2.0,v5 接口)。涵盖公交、地铁、火车、跨城交通。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ad1 | No | (可选)起点 adcode | |
| ad2 | No | (可选)终点 adcode | |
| date | No | (可选)出行日期,格式 2026-03-15 | |
| time | No | (可选)出行时间,格式 9-54 | |
| city1 | Yes | 起点所在城市,citycode | |
| city2 | No | (可选)终点所在城市,citycode,跨城时必填 | |
| origin | Yes | 起点坐标,格式"经度,纬度" | |
| strategy | No | (可选)换乘策略:0 推荐(默认)、1 最经济、2 最少换乘、3 最少步行、4 最舒适、5 不乘地铁、6 地铁图模式、7 地铁优先、8 时间最短 | |
| nightflag | No | (可选)是否考虑夜班车:0 不考虑(默认)、1 考虑 | |
| originpoi | No | (可选)起点 POI ID,与 destinationpoi 成组使用 | |
| destination | Yes | 终点坐标,格式"经度,纬度" | |
| show_fields | No | (可选)控制返回字段,可选:cost(耗时/票价)、navi(导航动作)、polyline(坐标串) | |
| destinationpoi | No | (可选)终点 POI ID,与 originpoi 成组使用 | |
| AlternativeRoute | No | (可选)返回方案条数,1-10,默认 5 |