MBMapkit
|
#import <MBNetService.h>
公有成员 | |
(id< MBNetServiceResult >) | - loadResultWithType:params: |
(void) | - requestResultWithType:params: |
静态公有成员 | |
(NSString *) | + encodeCoordinate: |
(CLLocationCoordinate2D) | + decodeCoordinate: |
(NSString *) | + deleteBrackets: |
保护属性 | |
MBNetServiceInternal * | _internal |
属性 | |
id< MBNetServiceDelegate > | delegate |
NSInteger | timeoutInterval |
NSString * | city |
NSString * | center |
网络服务
+ (CLLocationCoordinate2D) decodeCoordinate: | (NSString *) | text |
点解密函数
+ (NSString*) encodeCoordinate: | (CLLocationCoordinate2D) | coordinate |
点加密函数
- (id<MBNetServiceResult>) loadResultWithType: | (MBNetServiceType) | serviceType | |
params: | (MBNetServiceParams *) | params | |
请求服务函数 服务类型 参数 结果 MBNetServiceType_search_suggest _keyword:搜索关键字,字符串类型 {{id:序号, city:城市, district:地址, keyword:关键词},...} _count:返回的结果数,整数
MBNetServiceType_search_routeSuggest _keyword:搜索关键字,字符串类型 {{name:名称, type:类型, address:地址, coordinate:坐标,distance:距离, orientation:方向},...}
MBNetServiceType_search_poi _keyword:搜索关键字,字符串类型 {{name:名称, type:类型, address:地址, phone:电话号码 detail:详细, coordinate:坐标, more:更多 _pagenumber:页码,整数 distance:距离, orientation:方向, rating:热度, comment:评论条目个数, nid:唯一标识},...} _pagecount:每页的记录数
MBNetServiceType_search_categoryPoi _keyword:搜索关键字,字符串类型 {{name:名称, type:类型, address:地址, phone:电话号码 detail:详细, coordinate:坐标, more:更多 _pagenumber:页码,整数 distance:距离, orientation:方向, rating:热度, comment:评论条目个数, nid:唯一标识},...} _pagecount:每页的记录数 _category:分类号
MBNetServiceType_search_busStation _keyword:搜索关键字,字符串类型 {{name:名称, lines:线路数, coordinate:坐标点, address:地址, more:更多},...} _pagenumber:页码,整数 _pagecount:每页的记录数
MBNetServiceType_search_busLine _keyword:搜索关键字,字符串类型 {{name:名称, more:更多},...}
MBNetServiceType_search_busLineDetail _detail:公交路线结果中的more字段, {{stations:{{name:名称, coordinate:坐标, more:更多},...}, detail:描述, points:路线坐标点},...} 字符串类型
MBNetServiceType_search_busRoute _start:加密后的起点坐标,字符串类型 {{name:名称, distance:距离, more:更多},...} _end:加密后的终点坐标,字符串类型 _constraint:约束类型,字符串类型 kMBNetServiceConstraint_lowWalk kMBNetServiceConstraint_fast kMBNetServiceConstraint_lowTransfer
MBNetServiceType_search_busRouteDetail _start:加密后的起点坐标,字符串类型 {transfercount:换乘次数(数字), stationcount:换乘站数(数字), sections:{{action:整数, _end:加密后的终点坐标,字符串类型 即MBNetServiceActionType,info:描述信息,path:路径点},...}}; _detail:公交换乘结果中的more字段,字符串类型
MBNetServiceType_search_walkRoute _start:加密后的起点坐标,字符串类型 {distance:距离,time:时间,sections:{{action:整数,即MBNetServiceActionType,info:描述信息,path:路径点}, _end:加密后的终点坐标,字符串类型 ...}}
MBNetServiceType_search_driveRoute _start:加密后的起点坐标,字符串类型 {distance:距离,time:时间,sections:{{action:整数,即MBNetServiceActionType,info:描述信息,path:路径点}, _end:加密后的终点坐标,字符串类型 ...}} _constraint:约束类型,字符串类型 kMBNetServiceConstraint_fast kMBNetServiceConstraint_lowDistance kMBNetServiceConstraint_lowCost
- (NSString*) center [read, write, copy] |
通过加密的搜索中心点
- (NSString*) city [read, write, copy] |
搜索城市
- (NSInteger) timeoutInterval [read, write, assign] |
超时时间(秒)