Class PlanNode

java.lang.Object
com.baidu.mapapi.search.route.PlanNode
All Implemented Interfaces:
android.os.Parcelable

public class PlanNode extends Object implements android.os.Parcelable
路径规划中的出行节点信息,出行节点包括:起点,终点,途经点

出行节点信息可以通过两种方式确定:

1: 给定出行节点经纬度坐标, 添加poiID绑路更准确

2: 给定出行节点地名和城市名, 添加poiID绑路更准确

  • Field Details

    • CREATOR

      public static final android.os.Parcelable.Creator<PlanNode> CREATOR
  • Constructor Details

    • PlanNode

      protected PlanNode(android.os.Parcel in)
  • Method Details

    • getLocation

      public LatLng getLocation()
    • getCity

      public String getCity()
    • getCityName

      public String getCityName()
    • getCityCode

      public String getCityCode()
    • getName

      public String getName()
    • getPoiId

      public String getPoiId()
    • getBid

      public String getBid()
    • getFloor

      public String getFloor()
    • withLocation

      public static PlanNode withLocation(LatLng location)
      通过指定经纬度确定出行节点信息
      Parameters:
      location - 经纬度
      Returns:
      出行节点对象
    • withLocationAndFloorAndBid

      public static PlanNode withLocationAndFloorAndBid(LatLng location, String floor, String bid)
      通过指定经纬度和室内信息确定出行节点信息
      Parameters:
      location - 经纬度
      Returns:
      出行节点对象
    • withCityCodeAndLocation

      public static PlanNode withCityCodeAndLocation(String cityCode, LatLng location)
      通过指定城市编码和经纬度信息确定出行节点信息 城市编码用于室外->室内->室外路线
      Parameters:
      location - 经纬度
      Returns:
      出行节点对象
    • withLocationAndPoiId

      public static PlanNode withLocationAndPoiId(LatLng location, String poiId)
      通过指定经纬度坐标和poiId确定出行节点信息
      Parameters:
      location - 经纬度
      poiId - poiId
      Returns:
      出行节点信息
    • withCityNameAndPlaceName

      public static PlanNode withCityNameAndPlaceName(String city, String placeName)
      通过地名和城市名确定出行节点信息
      Parameters:
      placeName - 地点名
      city - 城市名
      Returns:
      出行节点对象
    • withCityNameAndPlaceNameAndPoiId

      public static PlanNode withCityNameAndPlaceNameAndPoiId(String city, String placeName, String poiId)
      通过地名和城市名和poiId确定出行节点信息
      Parameters:
      placeName - 地点名
      city - 城市名
      poiId -
      Returns:
      出行节点对象
    • withCityCodeAndPlaceName

      public static PlanNode withCityCodeAndPlaceName(int cityCode, String placeName)
      通过地名和城市编码确定出行节点信息
      Parameters:
      placeName - 地点名
      cityCode - 城市ID
      Returns:
      出行节点对象
    • withCityCodeAndPlaceNameAndPoiId

      public static PlanNode withCityCodeAndPlaceNameAndPoiId(int cityCode, String placeName, String poiId)
      通过地名和城市编码和PoiId确定出行节点信息
      Parameters:
      placeName - 地点名
      cityCode - 城市ID
      poiId -
      Returns:
      出行节点对象
    • describeContents

      public int describeContents()
      Specified by:
      describeContents in interface android.os.Parcelable
    • writeToParcel

      public void writeToParcel(android.os.Parcel dest, int flags)
      Specified by:
      writeToParcel in interface android.os.Parcelable