Package | Description |
---|---|
com.baidu.mapapi.search.route |
路线规划检索模块
|
Modifier and Type | Method and Description |
---|---|
MassTransitRoutePlanOption |
MassTransitRoutePlanOption.coordType(java.lang.String coordtype)
Deprecated.
|
MassTransitRoutePlanOption |
MassTransitRoutePlanOption.from(PlanNode from)
设置起点
|
MassTransitRoutePlanOption |
MassTransitRoutePlanOption.pageIndex(int pageIndex)
设置返回第几页 从0开始
|
MassTransitRoutePlanOption |
MassTransitRoutePlanOption.pageSize(int pagesize)
设置每页返回几条路线,[1,10]
|
MassTransitRoutePlanOption |
MassTransitRoutePlanOption.tacticsIncity(MassTransitRoutePlanOption.TacticsIncity tacticsincity)
设置市内公交换乘策略
|
MassTransitRoutePlanOption |
MassTransitRoutePlanOption.tacticsIntercity(MassTransitRoutePlanOption.TacticsIntercity intercity)
设置跨城公交换乘策略
|
MassTransitRoutePlanOption |
MassTransitRoutePlanOption.to(PlanNode to)
设置终点
|
MassTransitRoutePlanOption |
MassTransitRoutePlanOption.transtypeintercity(MassTransitRoutePlanOption.TransTypeIntercity typeintercity)
设置跨城交通方式策略
|
Modifier and Type | Method and Description |
---|---|
boolean |
RoutePlanSearch.masstransitSearch(MassTransitRoutePlanOption option)
发起跨城公共路线检索
V4.3.2版本后(包含V4.3.2版本),该方法要在Listener设置方法
RoutePlanSearch.setOnGetRoutePlanResultListener(OnGetRoutePlanResultListener)
之后执行,否则会在某些场景出现拿不到回调结果的情况 |