Package | Description |
---|---|
com.baidu.mapapi.search.route |
路线规划检索模块
|
Modifier and Type | Method and Description |
---|---|
TransitRoutePlanOption |
TransitRoutePlanOption.city(java.lang.String city)
设置换乘路线规划城市,起终点中的城市将会被忽略
|
TransitRoutePlanOption |
TransitRoutePlanOption.from(PlanNode from)
设置起点
|
TransitRoutePlanOption |
TransitRoutePlanOption.policy(TransitRoutePlanOption.TransitPolicy policy)
设置换乘策略
|
TransitRoutePlanOption |
TransitRoutePlanOption.to(PlanNode to)
设置终点
|
Modifier and Type | Method and Description |
---|---|
boolean |
RoutePlanSearch.transitSearch(TransitRoutePlanOption option)
发起换乘路线规划
V4.3.2版本后(包含V4.3.2版本),该方法要在Listener设置方法
RoutePlanSearch.setOnGetRoutePlanResultListener(OnGetRoutePlanResultListener)
之后执行,否则会在某些场景出现拿不到回调结果的情况 |