MBMapkit
公有成员 | 保护属性 | 属性
MBSearch类参考

所有成员的列表。

公有成员

(void) - suggestKeyword:inCity:count:
 根据输入给出建议关键词
(void) - routeSuggetKeyword:inCity:pageNumber:
 根据输入给出建议路线关键词
(void) - PoisWithKeyword:inCity:pageNumber:
 搜索关键词关联的POI点
(void) - PoisAroundCenter:withKeyword:ofType:pageNumber:
 搜索关键词关联的POI点
(void) - busStationsWithKeyword:inCity:pageNumber:
 搜索关键词关联的公交站点
(void) - busStationDetailWithSearchString:
 搜索公交站点的详细信息
(void) - busLinesWithKeyword:inCity:pageNumber:
 搜索关键词关联的公交路线
(void) - busLineDetailWithSearchString:
 公交路线的详细信息
(void) - transitDirectionsFromOrigin:toDestination:option:
 计算两个位置之间公交路线。
(void) - transitRoute:withWalkSteps:
 计算两个位置之间公交路线。
(void) - walkDirectionsFromOrigin:toDestination:option:
 计算两个位置之间步行路线。
(void) - driveDirectionsFromOrigin:toDestination:option:
 计算两个位置之间步行路线。

保护属性

MBNetService * _netService
id< MBSearchDelegate_delegate
NSTimeInterval _timeoutInterval
NSString * _city
CLLocationCoordinate2D _center
NSUInteger _pageCount
NSUInteger _pageNumber

属性

id< MBSearchDelegatedelegate
NSTimeInterval timeoutInterval
 超时时间(秒)
NSString * city
 搜索限定城市
CLLocationCoordinate2D center
NSUInteger pageCount

成员函数文档

- (void) busLineDetailWithSearchString: (NSString *)  searchString

公交路线的详细信息

参数:
searchString有MBBusStation中的searchString属性
注解:
使用委托调用search: didReceivedBusLineDetailResult:获得对应的结果
- (void) busLinesWithKeyword: (NSString *)  keyword
inCity: (NSString *)  city
pageNumber: (NSUInteger)  pageNumber 

搜索关键词关联的公交路线

参数:
keyword关键词
city城市
pageNumger页码
注解:
使用委托调用search: didReceivedBusLineResult:获得对应的结果
- (void) busStationDetailWithSearchString: (NSString *)  searchString

搜索公交站点的详细信息

参数:
searchString有MBBusStation中的searchString属性
注解:
使用委托调用search: didReceivedBusStationDetailResult:获得对应的结果
- (void) busStationsWithKeyword: (NSString *)  keyword
inCity: (NSString *)  city
pageNumber: (NSUInteger)  pageNumber 

搜索关键词关联的公交站点

参数:
keyword关键词
city城市
pageNumger页码
注解:
使用委托调用search: didReceivedBusStationResult:获得对应的结果
- (void) driveDirectionsFromOrigin: (CLLocationCoordinate2D)  origin
toDestination: (CLLocationCoordinate2D)  destination
option: (MBDriveDirectionsOptions)  option 

计算两个位置之间步行路线。

参数:
origin原点位置,单位加密经纬度字符串
destination目标位置,单位加密经纬度字符串
option计算路线的参数
注解:
使用委托调用search: didReceivedDriveDirections:获得对应的结果
- (void) PoisAroundCenter: (CLLocationCoordinate2D)  center
withKeyword: (NSString *)  keyword
ofType: (NSString *)  type
pageNumber: (NSUInteger)  pageNumber 

搜索关键词关联的POI点

参数:
keyword关键词 optional
center中心 required
typepoi类型 optional
pageNumger页码(从1开始) required
注解:
关键词和类型必须有一个有效参数 使用委托调用search: didReceivedPoiResult:获得对应的结果
- (void) PoisWithKeyword: (NSString *)  keyword
inCity: (NSString *)  city
pageNumber: (NSUInteger)  pageNumber 

搜索关键词关联的POI点

参数:
keyword关键词 required
city城市 required
typepoi类型 optional
pageNumger页码页码(从1开始) required
注解:
使用委托调用search: didReceivedPoiResult:获得对应的结果
- (void) routeSuggetKeyword: (NSString *)  keyword
inCity: (NSString *)  city
pageNumber: (NSUInteger)  pageNumber 

根据输入给出建议路线关键词

参数:
keyword关键词 required
city城市 required
pageNumger页码(从1开始) required
注解:
使用委托调用search: didReceivedRouteSuggestResult:获得对应的结果
- (void) suggestKeyword: (NSString *)  keyword
inCity: (NSString *)  city
count: (NSUInteger)  count 

根据输入给出建议关键词

参数:
keyword关键词 required
city城市 required
count返回建议关键词数量 required
注解:
使用委托调用search: didReceivedSuggestResult:获得对应的结果
- (void) transitDirectionsFromOrigin: (CLLocationCoordinate2D)  origin
toDestination: (CLLocationCoordinate2D)  destination
option: (MBTransitDirectionsOptions)  option 

计算两个位置之间公交路线。

参数:
origin原点位置,单位加密经纬度字符串
destination目标位置,单位加密经纬度字符串
option计算路线的参数
注解:
使用委托调用search: didReceivedTransitDirections:获得对应的结果
- (void) transitRoute: (NSString *)  searchString
withWalkSteps: (BOOL)  flag 

计算两个位置之间公交路线。

参数:
searchStringMBTransitDirectiosResult对象返回的searchString
flag是否计算步行数据
注解:
使用委托调用search: didReceivedTransitRoute:获得对应的结果
- (void) walkDirectionsFromOrigin: (CLLocationCoordinate2D)  origin
toDestination: (CLLocationCoordinate2D)  destination
option: (MBWalkDirectionsOptions)  option 

计算两个位置之间步行路线。

参数:
origin原点位置,单位加密经纬度字符串
destination目标位置,单位加密经纬度字符串
option计算路线的参数
注解:
使用委托调用search: didReceivedWalkDirections:获得对应的结果

该类的文档由以下文件生成:
 全部  函数 变量 属性