Package | Description |
---|---|
com.baidu.mapapi.search.route |
路线规划检索模块
|
Modifier and Type | Method and Description |
---|---|
BikingRoutePlanOption |
BikingRoutePlanOption.from(PlanNode from)
设置起点
|
BikingRoutePlanOption |
BikingRoutePlanOption.passBy(java.util.List<PlanNode> wayPoints)
设置途经点
|
BikingRoutePlanOption |
BikingRoutePlanOption.ridingType(int ridingType)
骑行类型(0:普通骑行模式,1:电动车模式)
|
BikingRoutePlanOption |
BikingRoutePlanOption.to(PlanNode to)
设置终点
|
Modifier and Type | Method and Description |
---|---|
boolean |
RoutePlanSearch.bikingSearch(BikingRoutePlanOption option)
发起骑行路线规划
V4.3.2版本后(包含V4.3.2版本),该方法要在Listener设置方法
RoutePlanSearch.setOnGetRoutePlanResultListener(OnGetRoutePlanResultListener)
之后执行,否则会在某些场景出现拿不到回调结果的情况 |