新搜索业务模块类
更多...
#import <MBPoiSearchSession.h>
◆ adminCode()
设置行政区编码(可选)和cityname 可以二选一
◆ cancel()
◆ childrenPoiSearchDepth()
- (int) childrenPoiSearchDepth |
|
|
|
◆ clearResult()
◆ currentPageNumber()
- (int) currentPageNumber |
|
|
|
◆ enableEnrouteSearchCompensation:()
- (void) enableEnrouteSearchCompensation: |
|
(BOOL) |
comp |
|
◆ enforceSortingByDistance:()
- (void) enforceSortingByDistance: |
|
(BOOL) |
isSorted |
|
◆ enrouteSearchCompensationEnabled()
- (BOOL) enrouteSearchCompensationEnabled |
|
|
|
◆ enrouteSearchWidth()
- (int) enrouteSearchWidth |
|
|
|
◆ goBack()
◆ hasMore()
◆ loadMore()
搜索结果翻页
每次从结果回调block返回的结果列表包含了翻页前已加载的全部结果。例如:分页大小为10,第一次搜索"西湖"返回10条数据,调用该方法后返回20条数据,其中前10条和第一次返回的结果一致。
◆ loadMoreEnroute()
◆ onlySearchInCurrentRegion()
- (BOOL) onlySearchInCurrentRegion |
|
|
|
◆ queryByKeyword:()
- (void) queryByKeyword: |
|
(query(keyword:)) |
NS_SWIFT_NAME |
|
◆ queryEnroute()
◆ queryEnRouteWithKeyword:shapePoints:()
- (void) queryEnRouteWithKeyword: |
|
(nonnull NSString *) |
keyword |
shapePoints: |
|
(query(keyword:shapePoints:)) |
NS_SWIFT_NAME |
|
|
| |
发起沿路搜搜索请求
- 参数
-
shapePoints | NSArray<NSValue> 路线上的点集合,每个点是装箱后的MBPoint |
◆ querySelect:index:()
对指定关键词搜索类型执行选中索引的操作(?),不支持MBItemTypePoi
◆ setAdminCode:()
◆ setCanceledBlock:()
◆ setChildrenPoiSearchDepth:()
- (void) setChildrenPoiSearchDepth: |
|
(int) |
depth |
|
◆ setEndedBlock:()
◆ setEnrouteSearchWidth:()
- (void) setEnrouteSearchWidth: |
|
(int) |
radius |
|
◆ setFailedBlock:()
◆ setLoadedBlock:()
◆ setOnlySearchInCurrentRegion:()
- (void) setOnlySearchInCurrentRegion: |
|
(BOOL) |
forced |
|
◆ setStartedBlock:()
◆ sortByDefault()
◆ sortByDistance()
◆ sortingByDistanceEnforced()
- (BOOL) sortingByDistanceEnforced |
|
|
|
◆ center
◆ cityName
- (NSString* _Nonnull) cityName |
|
readwritenonatomiccopy |
◆ defaultPoiSearchSession
◆ isNearBy
◆ keyword
- (NSString* _Nullable) keyword |
|
readnonatomiccopy |
◆ maxSearchDistance
- (NSUInteger) maxSearchDistance |
|
readwritenonatomicassign |
沿路搜的总距离范围(在线搜索默认3公里,离线搜索默认10公里)
◆ maxSearchRadius
- (NSUInteger) maxSearchRadius |
|
readwritenonatomicassign |
沿路搜的路线周边范围(在线搜索默认3公里,离线搜索默认10公里)
◆ pageSize
◆ preference
◆ range
关键词搜索的搜索距离范围(在线搜索默认3公里,离线搜索默认10公里)
◆ typeTree
◆ urlBase
- (NSString* _Nonnull) urlBase |
|
readwritenonatomiccopy |
◆ urlBaseForPoiServer
- (NSString* _Nonnull) urlBaseForPoiServer |
|
readwritenonatomiccopy |
该类的文档由以下文件生成: