Class RecommendStopSearch
java.lang.Object
com.baidu.mapapi.search.core.SearcherInternal
com.baidu.mapapi.search.recommendstop.RecommendStopSearch
推荐上车点检索接口
-
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()释放该推荐上车点检索对象static RecommendStopSearch新建推荐上车点检索对象boolean发起推荐上车点检索请求 V7.0.0版本新增方法void设置检索结果监听者 V7.0.0版本新增方法
-
Method Details
-
newInstance
新建推荐上车点检索对象- Returns:
- 推荐上车点检索对象
-
requestRecommendStop
发起推荐上车点检索请求 V7.0.0版本新增方法该方法要在
setOnGetRecommendStopResultListener(OnGetRecommendStopResultListener)方法之后执行,否则会出现拿不到回调结果的情况- Parameters:
option- 请求参数。 请求参数的位置经纬度信息不能为空- Returns:
- 成功发起检索返回true , 失败返回false
-
setOnGetRecommendStopResultListener
设置检索结果监听者 V7.0.0版本新增方法该方法要先于检索方法
requestRecommendStop(RecommendStopSearchOption)调用,否则会出现拿不到回调结果的情况- Parameters:
listener- 监听者。 所设监听者不为空,否则检索结果回调不生效。
-
destroy
public void destroy()释放该推荐上车点检索对象
-