public class BusPathV2 extends Path implements android.os.Parcelable
| 构造器和说明 |
|---|
BusPathV2()
BusPathV2的构造方法
Constructor of BusPathV2. |
BusPathV2(android.os.Parcel source)
序列化实现
Serialization implementation. |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
describeContents() |
float |
getBusDistance()
返回此方案的公交行驶的总距离 ,单位米
Returns the total bus travel distance of this solution, in meters. |
float |
getCost()
返回公交换乘方案的花费,单位元
Returns the cost of the public transport transfer solution, in yuan. |
java.util.List<BusStepV2> |
getSteps()
返回公交路径规划方案的路段列表
Returns the segment list of the public transport route planning solution. |
float |
getWalkDistance()
返回此方案的总步行距离,单位米
Returns the total walking distance of this solution, in meters. |
boolean |
isNightBus()
返回是否包含夜班车
Returns whether it includes night buses. |
void |
setBusDistance(float mBusDistance)
设置此方案的公交行驶的总距离 ,单位米
Sets the total bus travel distance of this solution, in meters. |
void |
setCost(float mCost)
设置公交换乘方案的花费,单位元
Sets the cost of the public transport transfer solution, in yuan. |
void |
setNightBus(boolean mNightBus)
设置是否包含夜班车
Sets whether it includes night buses. |
void |
setSteps(java.util.List<BusStepV2> mSteps)
设置公交路径规划方案的路段列表
Sets the segment list of the public transport route planning solution. |
void |
setWalkDistance(float mWalkDistance)
设置此方案的总步行距离,单位米
Sets the total walking distance of this solution, in meters. |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
getDistance, getDuration, getPolyline, setDistance, setDuration, setPolylinepublic static final android.os.Parcelable.Creator<BusPathV2> CREATOR
public BusPathV2(android.os.Parcel source)
public BusPathV2()
public float getCost()
public void setCost(float mCost)
mCost - 公交换乘方案的花费。
public boolean isNightBus()
public void setNightBus(boolean mNightBus)
mNightBus - 是否包含夜班车。true,包含夜班车;false,不包含。
public float getWalkDistance()
public void setWalkDistance(float mWalkDistance)
mWalkDistance - 此方案的总步行距离。
public float getBusDistance()
public void setBusDistance(float mBusDistance)
mBusDistance - 此方案的公交行驶的总距离。
public java.util.List<BusStepV2> getSteps()
public void setSteps(java.util.List<BusStepV2> mSteps)
mSteps - 公交路径规划方案的路段列表。
public int describeContents()
describeContents 在接口中 android.os.ParcelabledescribeContents 在类中 Pathpublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel 在接口中 android.os.ParcelablewriteToParcel 在类中 Path