Map Doc
1.0
iOS-引擎SDK-开放平台
|
#import <MB4SServices.h>
类方法 | |
(void) | + construct |
(void) | + cleanup |
(NSInteger) | + getCarTypeNum |
(NSString *) | + getCarTypeByIndex: |
根据索引查找指定类型名称,如果名称不存在,或者索引不是有效值将返回null 更多... | |
(NSInteger) | + queryCarBrands:initials: |
(NSString *) | + getCarBrandByIndex: |
(void) | + setSortRule: |
(BOOL) | + queryWithPoint:wmrNodeId:type:brand:keywords: |
(BOOL) | + queryByBrandAndWmrId:wmrNodeId:brand: |
(NSInteger) | + getResultRecordsNum |
(MB4SObject *) | + getResultRecordByIndex: |
(NSInteger) | + getCarBrandIndex: |
(NSInteger) | + getCarBrandSubSetIndex: |
(void) | + setSearchAroundDis: |
4S店搜索功能模块。 此模块需要使用额外的资源文件。打包在base.dat中。
+ (void) cleanup |
模块资源清理,构建方法 MB4SServices construct
+ (void) construct |
模块初始化,失败返回 nil,清理方法 MB4SServices cleanup
+ (NSString *) getCarBrandByIndex: | (int) | carBrandIndex |
+ (NSInteger) getCarBrandIndex: | (NSString *) | carBrandName |
根据品牌名称返回品牌名称所在索引位置
carBrandName | 品牌名称 |
+ (NSInteger) getCarBrandSubSetIndex: | (int) | brandIndexInWholeSet |
从商标集合中得到商标索引
brandIndexInWholeSet | 商标集合 |
+ (NSString *) getCarTypeByIndex: | (int) | index |
根据索引查找指定类型名称,如果名称不存在,或者索引不是有效值将返回null
index | 车类型索引 |
+ (NSInteger) getCarTypeNum |
返回当前车类型个数
+ (MB4SObject *) getResultRecordByIndex: | (int) | index |
根据索引得到查询结果对象
index | 索引 |
+ (NSInteger) getResultRecordsNum |
获取搜索结果数
+ (BOOL) queryByBrandAndWmrId: | (MBPoint) | carPos | |
wmrNodeId: | (int) | wmrId | |
brand: | (NSString *) | brand | |
根据当前位置,城市 Id,品牌查询,如果没有选择车辆类型过滤结果,你应该调用这个接口代替 queryWithPoint: wmrNodeId:type:brand:keywords:;
carPos | 当前位置 |
wmrId | 城市 Id |
brand | 车辆品牌 |
+ (NSInteger) queryCarBrands: | (NSString *) | carTypeName | |
initials: | (NSString *) | initials | |
根据车类型名称和品牌名称首字母搜索指定的品牌名称
carTypeName | 车类型名称 |
initials | 品牌名称首字母, _如果需要所有的车类型名称所对应的品牌个数,则此参数应该传 null _ |
+ (BOOL) queryWithPoint: | (MBPoint) | carPos | |
wmrNodeId: | (MBWmrObjId) | wmrNodeId | |
type: | (NSString *) | type | |
brand: | (NSString *) | brand | |
keywords: | (NSString *) | keywords | |
根据关键字搜索车所在位置附近的4S店
carPos | 车所在位置 |
wmrNodeId | 所在城市及区县Id,如果输入城市以上级别id将没有结果,一般是通过 MBWorldManager相关方法获取的 |
type | 车类型 |
brand | 搜索的汽车品牌名称 |
keywords | 搜索的关键字,关键字可以为空 |
+ (void) setSearchAroundDis: | (unsigned int) | distanceLimit |
设置搜索距离限制
distanceLimit | 距离限制 |
+ (void) setSortRule: | (MBSortRule) | sortRule |
按照指定类型排序结果 注意:此方法仅在有返回结果后调用有效。
sortRule | 排序类型 MBSortRule |