Package com.baidu.mapapi.search.core
Class RouteNode
java.lang.Object
com.baidu.mapapi.search.core.RouteNode
- All Implemented Interfaces:
android.os.Parcelable
- Direct Known Subclasses:
BusLineResult.BusStation
表示路线中的一节点,节点包括:路线起终点,公交站点等
-
Nested Class Summary
-
Field Summary
FieldsFields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint获取位置getTitle()获取标题getUid()当节点同时为POI时可用static RouteNode设置位置voidsetLocation(LatLng location) 设置位置void设置标题void设置 uidstatic RouteNodetitleAndLocation(String title, LatLng location) 设置标题和位置voidwriteToParcel(android.os.Parcel dest, int flags)
-
Field Details
-
CREATOR
-
-
Constructor Details
-
RouteNode
public RouteNode() -
RouteNode
protected RouteNode(android.os.Parcel in)
-
-
Method Details
-
titleAndLocation
设置标题和位置- Parameters:
title- 标题location- 位置- Returns:
- 构造的 RouteNode 对象
-
location
设置位置- Parameters:
location- 位置- Returns:
- 构造的 RouteNode 对象
-
getTitle
获取标题- Returns:
- 标题
-
setTitle
设置标题- Parameters:
title- 标题
-
getLocation
获取位置- Returns:
- 位置
-
setLocation
设置位置- Parameters:
location- 位置
-
getUid
当节点同时为POI时可用- Returns:
- 节点为POI时返回该节点UID,节点不是POI时,返回回空
-
setUid
设置 uid- Parameters:
uid- uid
-
describeContents
public int describeContents()- Specified by:
describeContentsin interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags) - Specified by:
writeToParcelin interfaceandroid.os.Parcelable
-