public class DrivePathV2 extends Path implements android.os.Parcelable
| 限定符和类型 | 字段和说明 |
|---|---|
static android.os.Parcelable.Creator<DrivePathV2> |
CREATOR |
| 构造器和说明 |
|---|
DrivePathV2()
DrivePathV2的构造方法。
|
DrivePathV2(android.os.Parcel source)
序列化实现。
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
describeContents() |
java.util.List<ChargeStationInfo> |
getChargeStationInfo()
获取充电站信息
Get charging station information |
Cost |
getCost()
获取方案所需时间及费用成本
Get the time and cost required for the plan |
ElecConsumeInfo |
getElecConsumeInfo()
获取电量消耗信息
Get power consumption information |
int |
getRestriction()
返回驾车规划方案的限行结果
Returns the traffic restriction result of the driving route plan. |
java.util.List<DriveStepV2> |
getSteps()
返回驾车规划方案的路段列表。
|
java.lang.String |
getStrategy()
返回导航策略,显示为中文,如返回“速度最快”。
|
void |
setChargeStationInfo(java.util.List<ChargeStationInfo> chargeStationInfo)
设置充电站信息
Set charging station information |
void |
setCost(Cost cost)
设置方案所需时间及费用成本
Set the time and cost required for the plan |
void |
setElecConsumeInfo(ElecConsumeInfo elecConsumeInfo)
设置电量消耗信息
Set power consumption information |
void |
setRestriction(int restriction)
设置驾车规划方案限行结果
Set the traffic restriction result of the driving route plan. |
void |
setSteps(java.util.List<DriveStepV2> mSteps)
设置驾车规划方案的路段列表。
|
void |
setStrategy(java.lang.String mStrategy)
设置导航策略。
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
getDistance, getDuration, getPolyline, setDistance, setDuration, setPolylinepublic static final android.os.Parcelable.Creator<DrivePathV2> CREATOR
public DrivePathV2(android.os.Parcel source)
public DrivePathV2()
public ElecConsumeInfo getElecConsumeInfo()
public void setElecConsumeInfo(ElecConsumeInfo elecConsumeInfo)
elecConsumeInfo - public java.util.List<ChargeStationInfo> getChargeStationInfo()
public void setChargeStationInfo(java.util.List<ChargeStationInfo> chargeStationInfo)
chargeStationInfo - public Cost getCost()
public void setCost(Cost cost)
cost - public java.lang.String getStrategy()
public void setStrategy(java.lang.String mStrategy)
mStrategy - 导航策略。
public java.util.List<DriveStepV2> getSteps()
public void setSteps(java.util.List<DriveStepV2> mSteps)
mSteps - 驾车规划方案的路段列表。
public int getRestriction()
public void setRestriction(int restriction)
restriction - 0 代表限行已规避或未限行; 1 代表限行无法规避
public int describeContents()
describeContents 在接口中 android.os.ParcelabledescribeContents 在类中 Pathpublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel 在接口中 android.os.ParcelablewriteToParcel 在类中 Path