public class BusRouteResultV2 extends RouteResult implements android.os.Parcelable
| 限定符和类型 | 字段和说明 |
|---|---|
static android.os.Parcelable.Creator<BusRouteResultV2> |
CREATOR |
| 构造器和说明 |
|---|
BusRouteResultV2()
BusRouteResultV2的构造方法
The constructor method of BusRouteResultV2. |
BusRouteResultV2(android.os.Parcel source)
序列化实现
Serialization implementation. |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
describeContents() |
RouteSearchV2.BusRouteQuery |
getBusQuery()
返回该结果对应的查询参数
Returns the query parameters corresponding to this result. |
float |
getDistance()
总距离
Total distance |
java.util.List<BusPathV2> |
getPaths()
返回公交路径规划方案
Returns the bus route planning scheme. |
float |
getTaxiCost()
返回规划的公交路线对应的打车费用,单位元
Returns the taxi fare corresponding to the planned bus route, in yuan. |
void |
setBusQuery(RouteSearchV2.BusRouteQuery busQuery)
设置该结果对应的查询参数
Set the query parameters corresponding to this result. |
void |
setDistance(float distance)
总距离
Total distance |
void |
setPaths(java.util.List<BusPathV2> mPaths)
设置公交路径规划方案
Set the bus route planning scheme. |
void |
setTaxiCost(float mTaxiCost)
设置规划路线对应的打车费用,单位元
Set the taxi fare corresponding to the planned route, in yuan. |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
getStartPos, getTargetPos, setStartPos, setTargetPospublic static final android.os.Parcelable.Creator<BusRouteResultV2> CREATOR
public BusRouteResultV2(android.os.Parcel source)
public BusRouteResultV2()
public float getTaxiCost()
public void setTaxiCost(float mTaxiCost)
mTaxiCost - 打车所需费用。
public java.util.List<BusPathV2> getPaths()
public void setPaths(java.util.List<BusPathV2> mPaths)
mPaths - 公交路径规划方案。
public RouteSearchV2.BusRouteQuery getBusQuery()
public void setBusQuery(RouteSearchV2.BusRouteQuery busQuery)
busQuery - 对应的查询参数。
public float getDistance()
public void setDistance(float distance)
distance - public int describeContents()
describeContents 在接口中 android.os.ParcelabledescribeContents 在类中 RouteResultpublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel 在接口中 android.os.ParcelablewriteToParcel 在类中 RouteResult