public class PlanNode
extends java.lang.Object
出行节点信息可以通过两种方式确定:
1: 给定出行节点经纬度坐标, 添加poiID绑路更准确
2: 给定出行节点地名和城市名, 添加poiID绑路更准确
Modifier and Type | Field and Description |
---|---|
static <any> |
CREATOR |
Modifier | Constructor and Description |
---|---|
protected |
PlanNode(Parcel in) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
java.lang.String |
getCity() |
java.lang.String |
getCityCode() |
java.lang.String |
getCityName() |
LatLng |
getLocation() |
java.lang.String |
getName() |
java.lang.String |
getPoiId() |
static PlanNode |
withCityCodeAndPlaceName(int cityCode,
java.lang.String placeName)
通过地名和城市编码确定出行节点信息
|
static PlanNode |
withCityCodeAndPlaceNameAndPoiId(int cityCode,
java.lang.String placeName,
java.lang.String poiId)
通过地名和城市编码和PoiId确定出行节点信息
|
static PlanNode |
withCityNameAndPlaceName(java.lang.String city,
java.lang.String placeName)
通过地名和城市名确定出行节点信息
|
static PlanNode |
withCityNameAndPlaceNameAndPoiId(java.lang.String city,
java.lang.String placeName,
java.lang.String poiId)
通过地名和城市名和poiId确定出行节点信息
|
static PlanNode |
withLocation(LatLng location)
通过指定经纬度确定出行节点信息
|
static PlanNode |
withLocationAndPoiId(LatLng location,
java.lang.String poiId)
通过指定经纬度坐标和poiId确定出行节点信息
|
void |
writeToParcel(Parcel dest,
int flags) |
public LatLng getLocation()
public java.lang.String getCity()
public java.lang.String getCityName()
public java.lang.String getCityCode()
public java.lang.String getName()
public java.lang.String getPoiId()
public static PlanNode withLocation(LatLng location)
location
- 经纬度public static PlanNode withLocationAndPoiId(LatLng location, java.lang.String poiId)
location
- 经纬度poiId
- poiIdpublic static PlanNode withCityNameAndPlaceName(java.lang.String city, java.lang.String placeName)
placeName
- 地点名city
- 城市名public static PlanNode withCityNameAndPlaceNameAndPoiId(java.lang.String city, java.lang.String placeName, java.lang.String poiId)
placeName
- 地点名city
- 城市名poiId
- public static PlanNode withCityCodeAndPlaceName(int cityCode, java.lang.String placeName)
placeName
- 地点名cityCode
- 城市IDpublic static PlanNode withCityCodeAndPlaceNameAndPoiId(int cityCode, java.lang.String placeName, java.lang.String poiId)
placeName
- 地点名cityCode
- 城市IDpoiId
- public int describeContents()
public void writeToParcel(Parcel dest, int flags)