public class TruckPath
extends java.lang.Object
implements android.os.Parcelable
| 构造器和说明 |
|---|
TruckPath() |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
describeContents() |
float |
getDistance()
此方案的行驶距离 单位:米
Driving distance of this solution, unit: meters |
long |
getDuration()
此方案的耗时 单位:秒
Time consumption of this solution, unit: seconds |
int |
getRestriction()
限行结果
0,未知(未输入完整/正确车牌号信息时候显示)
1,已规避限行
2,起点限行
3,途径点在限行区域内(设置途径点才出现此报错)
4,途径限行区域
5,终点限行
Traffic restriction result 0, Unknown (displayed when complete/correct license plate information is not entered) 1, Traffic restriction avoided 2, Starting point restricted 3, Waypoint within restricted area (this error appears when a waypoint is set) 4, Passing through restricted area 5, Destination restricted |
java.util.List<TruckStep> |
getSteps()
具体的方案细节
Specific solution details |
java.lang.String |
getStrategy()
此方案的路径规划模式
Route planning mode of this solution |
float |
getTollDistance()
此导航方案道路收费距离长度 单位:米
Toll distance length of this navigation solution, unit: meters |
float |
getTolls()
此导航方案道路收费金额 单位:元
Toll amount of this navigation solution, unit: yuan |
int |
getTotalTrafficlights()
此方案红绿灯总数 单位:个
Total number of traffic lights in this solution, unit: units |
void |
setDistance(float distance) |
void |
setDuration(long duration) |
void |
setRestriction(int restriction) |
void |
setSteps(java.util.List<TruckStep> steps) |
void |
setStrategy(java.lang.String strategy) |
void |
setTollDistance(float tollDistance) |
void |
setTolls(float tolls) |
void |
setTotalTrafficlights(int totalTrafficlights) |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<TruckPath> CREATOR
public void setDistance(float distance)
public void setDuration(long duration)
public void setStrategy(java.lang.String strategy)
public void setTolls(float tolls)
public void setTollDistance(float tollDistance)
public void setTotalTrafficlights(int totalTrafficlights)
public void setRestriction(int restriction)
public void setSteps(java.util.List<TruckStep> steps)
public float getDistance()
public long getDuration()
public java.lang.String getStrategy()
public float getTolls()
public float getTollDistance()
public int getTotalTrafficlights()
public int getRestriction()
public java.util.List<TruckStep> getSteps()
public int describeContents()
describeContents 在接口中 android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel 在接口中 android.os.Parcelable