Package | Description |
---|---|
com.baidu.mapapi.search.poi |
poi检索模块
|
Modifier and Type | Method and Description |
---|---|
PoiNearbySearchOption |
PoiNearbySearchOption.extendAdcode(boolean adCodeEnabled)
设置是否召回行政区域编码
true 召回
false 不召回
|
PoiNearbySearchOption |
PoiNearbySearchOption.keyword(java.lang.String key)
检索关键字
|
PoiNearbySearchOption |
PoiNearbySearchOption.language(LanguageType language)
设置检索语言类型
|
PoiNearbySearchOption |
PoiNearbySearchOption.location(LatLng location)
检索位置
|
PoiNearbySearchOption |
PoiNearbySearchOption.pageCapacity(int pageCapacity)
设置每页容量,默认为每页10条
|
PoiNearbySearchOption |
PoiNearbySearchOption.pageNum(int pageNum)
分页编号
|
PoiNearbySearchOption |
PoiNearbySearchOption.poiFilter(PoiFilter poiFilter)
设置检索过滤条件 scope字段取值为2时有效
|
PoiNearbySearchOption |
PoiNearbySearchOption.radius(int radius)
设置检索的半径范围
|
PoiNearbySearchOption |
PoiNearbySearchOption.radiusLimit(boolean radiusLimit)
设置是否严格限定召回结果在设置检索半径范围内
|
PoiNearbySearchOption |
PoiNearbySearchOption.scope(int scope)
设置检索分类
|
PoiNearbySearchOption |
PoiNearbySearchOption.sortType(PoiSortType sortType)
Deprecated.
搜索结果排序规则,可选,默认(从5.1.0版本之后,废弃该接口)
|
PoiNearbySearchOption |
PoiNearbySearchOption.tag(java.lang.String tag)
设置检索分类
|
Modifier and Type | Method and Description |
---|---|
boolean |
PoiSearch.searchNearby(PoiNearbySearchOption option)
周边检索
V4.3.2版本后(包含V4.3.2版本),该方法要在Listener设置方法
PoiSearch.setOnGetPoiSearchResultListener(OnGetPoiSearchResultListener)
之后执行,否则会在某些场景出现拿不到回调结果的情况 |