Package com.baidu.mapapi.search.building
Class BuildingSearch
java.lang.Object
com.baidu.mapapi.search.core.SearcherInternal
com.baidu.mapapi.search.building.BuildingSearch
建筑物检索
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()释放检索对象资源static BuildingSearch获取检索建筑物对象booleanrequestBuilding(BuildingSearchOption option) 发起建筑物检索请求void设置建筑物检索结果监听者
-
Constructor Details
-
BuildingSearch
public BuildingSearch()
-
-
Method Details
-
newInstance
获取检索建筑物对象- Returns:
- 建筑物检索对象
-
requestBuilding
发起建筑物检索请求- Parameters:
option- 建筑检索参数,经纬度不能为null- Returns:
- 成功发起检索返回true , 失败返回false
- Throws:
IllegalStateExceptionIllegalArgumentException
-
setOnGetBuildingSearchResultListener
设置建筑物检索结果监听者- Parameters:
listener- 监听者,所设监听者不为空,否则检索结果回调不生效。
-
destroy
public void destroy()释放检索对象资源
-