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