Map Doc  1.0
iOS-引擎SDK-开放平台
MB4SServices类 参考

#import <MB4SServices.h>

类 MB4SServices 继承关系图:

类方法

(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中。

函数文档

◆ cleanup()

+ (void) cleanup

模块资源清理,构建方法 MB4SServices construct

◆ construct()

+ (void) construct

模块初始化,失败返回 nil,清理方法 MB4SServices cleanup

◆ getCarBrandByIndex:()

+ (NSString *) getCarBrandByIndex: (int)  carBrandIndex

根据车品牌名称索引获取品牌名称,相关函数参考 queryCarBrands:initials:

参数
carBrandIndex品牌名称索引
返回
品牌名称
自从
4.9.x

◆ getCarBrandIndex:()

+ (NSInteger) getCarBrandIndex: (NSString *)  carBrandName

根据品牌名称返回品牌名称所在索引位置

参数
carBrandName品牌名称
返回
品牌名称对应的在表中的索引位置,如果获取失败则返回无效索引

◆ getCarBrandSubSetIndex:()

+ (NSInteger) getCarBrandSubSetIndex: (int)  brandIndexInWholeSet

从商标集合中得到商标索引

参数
brandIndexInWholeSet商标集合
返回
商标索引

◆ getCarTypeByIndex:()

+ (NSString *) getCarTypeByIndex: (int)  index

根据索引查找指定类型名称,如果名称不存在,或者索引不是有效值将返回null

参数
index车类型索引
返回
车类型名称字符串
自从
4.9.x

◆ getCarTypeNum()

+ (NSInteger) getCarTypeNum

返回当前车类型个数

返回
车类型个数
自从
4.9.x

◆ getResultRecordByIndex:()

+ (MB4SObject *) getResultRecordByIndex: (int)  index

根据索引得到查询结果对象

参数
index索引
返回
4S结果对象

◆ getResultRecordsNum()

+ (NSInteger) getResultRecordsNum

获取搜索结果数

返回
搜索结果数量
自从
4.9.x

◆ queryByBrandAndWmrId:wmrNodeId:brand:()

+ (BOOL) queryByBrandAndWmrId: (MBPoint carPos
wmrNodeId: (int)  wmrId
brand: (NSString *)  brand 

根据当前位置,城市 Id,品牌查询,如果没有选择车辆类型过滤结果,你应该调用这个接口代替 queryWithPoint: wmrNodeId:type:brand:keywords:;

参数
carPos当前位置
wmrId城市 Id
brand车辆品牌
返回
是否查询成功

◆ queryCarBrands:initials:()

+ (NSInteger) queryCarBrands: (NSString *)  carTypeName
initials: (NSString *)  initials 

根据车类型名称和品牌名称首字母搜索指定的品牌名称

参数
carTypeName车类型名称
initials品牌名称首字母, _如果需要所有的车类型名称所对应的品牌个数,则此参数应该传 null _
返回
品牌个数
自从
4.9.x

◆ queryWithPoint:wmrNodeId:type:brand:keywords:()

+ (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搜索的关键字,关键字可以为空
自从
4.9.x

◆ setSearchAroundDis:()

+ (void) setSearchAroundDis: (unsigned int)  distanceLimit

设置搜索距离限制

参数
distanceLimit距离限制

◆ setSortRule:()

+ (void) setSortRule: (MBSortRule sortRule

按照指定类型排序结果 注意:此方法仅在有返回结果后调用有效。

参数
sortRule排序类型 MBSortRule

该类的文档由以下文件生成: