Package com.baidu.mapapi.search.route
Class PlanNode
java.lang.Object
com.baidu.mapapi.search.route.PlanNode
- All Implemented Interfaces:
android.os.Parcelable
路径规划中的出行节点信息,出行节点包括:起点,终点,途经点
出行节点信息可以通过两种方式确定:
1: 给定出行节点经纬度坐标, 添加poiID绑路更准确
2: 给定出行节点地名和城市名, 添加poiID绑路更准确
-
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 TypeMethodDescriptionintgetBid()getCity()getFloor()getName()getPoiId()static PlanNodewithCityCodeAndLocation(String cityCode, LatLng location) 通过指定城市编码和经纬度信息确定出行节点信息 城市编码用于室外->室内->室外路线static PlanNodewithCityCodeAndPlaceName(int cityCode, String placeName) 通过地名和城市编码确定出行节点信息static PlanNodewithCityCodeAndPlaceNameAndPoiId(int cityCode, String placeName, String poiId) 通过地名和城市编码和PoiId确定出行节点信息static PlanNodewithCityNameAndPlaceName(String city, String placeName) 通过地名和城市名确定出行节点信息static PlanNodewithCityNameAndPlaceNameAndPoiId(String city, String placeName, String poiId) 通过地名和城市名和poiId确定出行节点信息static PlanNodewithLocation(LatLng location) 通过指定经纬度确定出行节点信息static PlanNodewithLocationAndFloorAndBid(LatLng location, String floor, String bid) 通过指定经纬度和室内信息确定出行节点信息static PlanNodewithLocationAndPoiId(LatLng location, String poiId) 通过指定经纬度坐标和poiId确定出行节点信息voidwriteToParcel(android.os.Parcel dest, int flags)
-
Field Details
-
CREATOR
-
-
Constructor Details
-
PlanNode
protected PlanNode(android.os.Parcel in)
-
-
Method Details
-
getLocation
-
getCity
-
getCityName
-
getCityCode
-
getName
-
getPoiId
-
getBid
-
getFloor
-
withLocation
通过指定经纬度确定出行节点信息- Parameters:
location- 经纬度- Returns:
- 出行节点对象
-
withLocationAndFloorAndBid
通过指定经纬度和室内信息确定出行节点信息- Parameters:
location- 经纬度- Returns:
- 出行节点对象
-
withCityCodeAndLocation
通过指定城市编码和经纬度信息确定出行节点信息 城市编码用于室外->室内->室外路线- Parameters:
location- 经纬度- Returns:
- 出行节点对象
-
withLocationAndPoiId
通过指定经纬度坐标和poiId确定出行节点信息- Parameters:
location- 经纬度poiId- poiId- Returns:
- 出行节点信息
-
withCityNameAndPlaceName
通过地名和城市名确定出行节点信息- Parameters:
placeName- 地点名city- 城市名- Returns:
- 出行节点对象
-
withCityNameAndPlaceNameAndPoiId
public static PlanNode withCityNameAndPlaceNameAndPoiId(String city, String placeName, String poiId) 通过地名和城市名和poiId确定出行节点信息- Parameters:
placeName- 地点名city- 城市名poiId-- Returns:
- 出行节点对象
-
withCityCodeAndPlaceName
通过地名和城市编码确定出行节点信息- Parameters:
placeName- 地点名cityCode- 城市ID- Returns:
- 出行节点对象
-
withCityCodeAndPlaceNameAndPoiId
public static PlanNode withCityCodeAndPlaceNameAndPoiId(int cityCode, String placeName, String poiId) 通过地名和城市编码和PoiId确定出行节点信息- Parameters:
placeName- 地点名cityCode- 城市IDpoiId-- Returns:
- 出行节点对象
-
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
-