Package | Description |
---|---|
com.baidu.mapapi.search.route |
路线规划检索模块
|
Modifier and Type | Method and Description |
---|---|
DrivingRoutePlanOption |
DrivingRoutePlanOption.currentCity(java.lang.String cityName)
设置当前城市,检索打车信息时必需
|
DrivingRoutePlanOption |
DrivingRoutePlanOption.from(PlanNode from)
设置起点
|
DrivingRoutePlanOption |
DrivingRoutePlanOption.passBy(java.util.List<PlanNode> wayPoints)
设置途经点
|
DrivingRoutePlanOption |
DrivingRoutePlanOption.policy(DrivingRoutePlanOption.DrivingPolicy policy)
设置驾车路线规划策略
|
DrivingRoutePlanOption |
DrivingRoutePlanOption.to(PlanNode to)
设置终点
|
DrivingRoutePlanOption |
DrivingRoutePlanOption.trafficPolicy(DrivingRoutePlanOption.DrivingTrafficPolicy trafficPolicy)
设置是否支持路况数据
|
Modifier and Type | Method and Description |
---|---|
boolean |
RoutePlanSearch.drivingSearch(DrivingRoutePlanOption option)
发起驾车路线规划
V4.3.2版本后(包含V4.3.2版本),该方法要在Listener设置方法
RoutePlanSearch.setOnGetRoutePlanResultListener(OnGetRoutePlanResultListener)
之后执行,否则会在某些场景出现拿不到回调结果的情况 |