Package com.baidu.mapapi.search.route
Class DrivingRouteResult
java.lang.Object
com.baidu.mapapi.search.core.SearchResult
com.baidu.mapapi.search.route.DrivingRouteResult
- All Implemented Interfaces:
android.os.Parcelable
驾车路线结果
-
Nested Class Summary
Nested classes/interfaces inherited from class com.baidu.mapapi.search.core.SearchResult
SearchResult.ERRORNO -
Field Summary
FieldsFields inherited from class com.baidu.mapapi.search.core.SearchResult
customExtra, error, statusFields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint获取所有规划路线方案获取路线建议搜索信息Deprecated.voidsetRouteLines(List<DrivingRouteLine> routeLines) voidsetSuggestAddrInfo(SuggestAddrInfo suggestAddrInfo) voidsetTaxiInfos(List<TaxiInfo> taxiInfos) voidwriteToParcel(android.os.Parcel dest, int flags) Methods inherited from class com.baidu.mapapi.search.core.SearchResult
getCustomExtra, setCustomExtra
-
Field Details
-
CREATOR
-
-
Constructor Details
-
DrivingRouteResult
public DrivingRouteResult() -
DrivingRouteResult
protected DrivingRouteResult(android.os.Parcel in)
-
-
Method Details
-
getTaxiInfo
Deprecated.获取该路线打车信息,3.3.0版本后不再使用。- Returns:
- 该路线打车信息
-
getTaxiInfos
-
setTaxiInfos
-
setRouteLines
-
getRouteLines
获取所有规划路线方案- Returns:
- 所有规划路线方案
-
getSuggestAddrInfo
获取路线建议搜索信息当
SearchResult.error值为SearchResult.ERRORNO.AMBIGUOUS_ROURE_ADDR时,建议信息不为空- Returns:
- 路线建议搜索信息
-
setSuggestAddrInfo
-
describeContents
public int describeContents()- Specified by:
describeContentsin interfaceandroid.os.Parcelable- Overrides:
describeContentsin classSearchResult
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags) - Specified by:
writeToParcelin interfaceandroid.os.Parcelable- Overrides:
writeToParcelin classSearchResult
-