public class DrivingRoutePlanOption
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DrivingRoutePlanOption.DrivingPolicy
驾车路线规划策略枚举
|
static class |
DrivingRoutePlanOption.DrivingTrafficPolicy
驾车路线路况策略
|
Modifier and Type | Field and Description |
---|---|
java.lang.String |
mCityName |
PlanNode |
mFrom |
DrivingRoutePlanOption.DrivingPolicy |
mPolicy |
PlanNode |
mTo |
DrivingRoutePlanOption.DrivingTrafficPolicy |
mtrafficPolicy |
java.util.List<PlanNode> |
mWayPoints |
Constructor and Description |
---|
DrivingRoutePlanOption() |
Modifier and Type | Method and Description |
---|---|
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