Class RecommendStopSearch

java.lang.Object
com.baidu.mapapi.search.core.SearcherInternal
com.baidu.mapapi.search.recommendstop.RecommendStopSearch

public class RecommendStopSearch extends SearcherInternal
推荐上车点检索接口
  • Method Details

    • newInstance

      public static RecommendStopSearch newInstance()
      新建推荐上车点检索对象
      Returns:
      推荐上车点检索对象
    • requestRecommendStop

      public boolean requestRecommendStop(RecommendStopSearchOption option)
      发起推荐上车点检索请求 V7.0.0版本新增方法

      该方法要在setOnGetRecommendStopResultListener(OnGetRecommendStopResultListener) 方法之后执行,否则会出现拿不到回调结果的情况

      Parameters:
      option - 请求参数。 请求参数的位置经纬度信息不能为空
      Returns:
      成功发起检索返回true , 失败返回false
    • setOnGetRecommendStopResultListener

      public void setOnGetRecommendStopResultListener(OnGetRecommendStopResultListener listener)
      设置检索结果监听者 V7.0.0版本新增方法

      该方法要先于检索方法requestRecommendStop(RecommendStopSearchOption) 调用,否则会出现拿不到回调结果的情况

      Parameters:
      listener - 监听者。 所设监听者不为空,否则检索结果回调不生效。
    • destroy

      public void destroy()
      释放该推荐上车点检索对象