Package | Description |
---|---|
com.baidu.mapapi.search.poi |
poi检索模块
|
Modifier and Type | Method and Description |
---|---|
PoiBoundSearchOption |
PoiBoundSearchOption.bound(LatLngBounds bound)
poi检索范围
|
PoiBoundSearchOption |
PoiBoundSearchOption.extendAdcode(boolean adCodeEnabled)
设置是否召回行政区域编码
true 召回
false 不召回
|
PoiBoundSearchOption |
PoiBoundSearchOption.keyword(java.lang.String key)
检索关键字
|
PoiBoundSearchOption |
PoiBoundSearchOption.language(LanguageType language)
设置检索语言类型
|
PoiBoundSearchOption |
PoiBoundSearchOption.pageCapacity(int pageCapacity)
设置每页容量,默认为每页10条
|
PoiBoundSearchOption |
PoiBoundSearchOption.pageNum(int pageNum)
分页编号
|
PoiBoundSearchOption |
PoiBoundSearchOption.poiFilter(PoiFilter poiFilter)
设置检索过滤条件 scope字段取值为2时有效
|
PoiBoundSearchOption |
PoiBoundSearchOption.scope(int scope)
设置检索分类
|
PoiBoundSearchOption |
PoiBoundSearchOption.tag(java.lang.String tag)
设置检索分类
|
Modifier and Type | Method and Description |
---|---|
boolean |
PoiSearch.searchInBound(PoiBoundSearchOption option)
范围内检索
V4.3.2版本后(包含V4.3.2版本),该方法要在Listener设置方法
PoiSearch.setOnGetPoiSearchResultListener(OnGetPoiSearchResultListener)
之后执行,否则会在某些场景出现拿不到回调结果的情况 |