public class DrivingRoutePlanOption
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static class |
DrivingRoutePlanOption.DrivingPolicy
驾车路线规划策略枚举
|
static class |
DrivingRoutePlanOption.DrivingTrafficPolicy
驾车路线路况策略
|
限定符和类型 | 字段和说明 |
---|---|
java.lang.String |
mCityName |
PlanNode |
mFrom |
DrivingRoutePlanOption.DrivingPolicy |
mPolicy |
PlanNode |
mTo |
DrivingRoutePlanOption.DrivingTrafficPolicy |
mtrafficPolicy |
java.util.List<PlanNode> |
mWayPoints |
构造器和说明 |
---|
DrivingRoutePlanOption() |
限定符和类型 | 方法和说明 |
---|---|
DrivingRoutePlanOption |
currentCity(java.lang.String cityName)
设置当前城市,检索打车信息时必需
|
DrivingRoutePlanOption |
from(PlanNode from)
设置起点
|
DrivingRoutePlanOption |
passBy(java.util.List<PlanNode> wayPoints)
设置途经点
|
DrivingRoutePlanOption |
policy(DrivingRoutePlanOption.DrivingPolicy policy)
设置驾车路线规划策略
|
DrivingRoutePlanOption |
to(PlanNode to)
设置终点
|
DrivingRoutePlanOption |
trafficPolicy(DrivingRoutePlanOption.DrivingTrafficPolicy trafficPolicy)
设置是否支持路况数据
|
public PlanNode mFrom
public PlanNode mTo
public java.lang.String mCityName
public DrivingRoutePlanOption.DrivingPolicy mPolicy
public java.util.List<PlanNode> mWayPoints
public DrivingRoutePlanOption.DrivingTrafficPolicy mtrafficPolicy
public DrivingRoutePlanOption from(PlanNode from)
from
- 起点public DrivingRoutePlanOption to(PlanNode to)
to
- 终点public DrivingRoutePlanOption currentCity(java.lang.String cityName)
cityName
- 当前城市名称public DrivingRoutePlanOption passBy(java.util.List<PlanNode> wayPoints)
wayPoints
- 途经点public DrivingRoutePlanOption trafficPolicy(DrivingRoutePlanOption.DrivingTrafficPolicy trafficPolicy)
trafficPolicy,参考DrivingTrafficPolicy,可设置是否返回路况数据
- public DrivingRoutePlanOption policy(DrivingRoutePlanOption.DrivingPolicy policy)
policy
- 策略DrivingRoutePlanOption.DrivingPolicy