Map Doc
1.0
iOS-引擎SDK-开放平台
|
#import <MBRouteBase.h>
属性 | |
MBRouteTmcStyle | style |
路线的基本信息
- (void) enableTmcColors: | (BOOL) | enable |
是否打开Tmc蚯蚓路,默认:false,不显示TMC信息。
enable | YES打开,NO关闭。 |
- (RouteArrowData *) getArrowPointsByIndex: | (NSInteger) | index |
获取转向箭头数据
index | 箭头索引 |
- (MBRect) getBoundingBox |
获取当前路线的包络盒
- (NSInteger) getCurrentIndexInDescriptions: | (int) | curDistance |
返回当前车所在路线上的位置所对应的路线详情下标,只有 GPS 定位有效
curDistance | 当前路线起点距离车的距离 |
- (NSString *) getDescription |
获取当前路线的描述信息
- (MBRouteDescriptionItem*) getDescriptionItem: | (NSInteger) | index | |
curDistance: | (NSInteger) | curDistance | |
获取路线说明实例
index | 指定要获取的第index个路线说明,包含途经点,MBRouteBase getDescriptionNumber |
curDistance | 但前车所在路线上的位置,若不用此参数,则设置为2147483647,即 int 最大值 |
- (NSInteger) getDescriptionItemTmcSection: | (NSInteger) | index | |
rates: | (NSMutableArray *) | rates | |
tmcStates: | (NSMutableArray *) | tmcStates | |
获取指定索引路段的描述信息
index | 路段所以 |
rates | 路况比例 |
tmcStates | TMC路段描述 |
- (NSInteger) getDescriptionNumber |
返回路线详情中路线说明的个数,区别于Segment(路段)个数。
- (NSInteger) getEstimatedTime |
路线全程所需时间,单位:秒
- (MBPoint) getFirstShapePoint |
获取路线上的第一个形状点
- (MBPoint) getLastShapePoint |
获取路线上最后一个形状点
- (NSInteger) getLength |
获取当前路线长度,单位:米
- (NSInteger) getNavInfoId: | (NSInteger) | index |
获取路线结果中的路段四维Id
- (MBRoutePlan *) getPlan |
获取路线规划对象
- (MBRerouteReaseon) getRerouteReason |
返回TMC重算路的原因
- (NSString *) getRoadNameWithDescriptionIndex: | (NSInteger) | index |
- (void *) getRouteBase |
获取路线
- (MBPoint *) getSegmentFinePoints: | (NSInteger) | index | |
withPointNum: | (NSInteger *) | num | |
- (NSInteger) getSegmentNumber |
获取当前路线共有多少个路段
- (MBTmcState) getSegmentTmc: | (int) | index |
获取路线上指定路段的路况信息
index | 路段索引 |
- (int) getStartDirection |
路线的开始方向,单位:度
- (NSInteger) getTmcSections: | (NSInteger) | maxSection | |
outPixels: | (UInt32 *) | pixels | |
outTmcStates: | (UInt8 *) | tmcStates | |
- (NSInteger) getTmcSections: | (NSInteger) | maxSection | |
pixels: | (NSMutableArray *) | pixels | |
tmcStates: | (NSMutableArray *) | tmcStates | |
获取 TMC 柱状图,需联网
maxSection | 柱状图的长度(以像素为单位),这个值也是pixels和states这两个数组的最大长度 |
pixels | 每个值表示一个区间,每个区间的起点是上一个区间的终点或0,比如:pixels[1] = 10,pixels[2] = 30,则柱状图中第10个像素到第29个像素用state[2]的状态填充 |
tmcStates | 每个区间对应的tmc状态 |
- (NSString *) getTmcTime |
获取TMC信息更新时间字符串
- (NSInteger) getTollCharge |
获取收费金额
- (NSInteger) getTrafficLightNumber |
返回路线上的红绿灯数量
- (MBRouteType) getType |
获取当前路线类型为在线还是离线
- (void *) handle |
导出handle
- (BOOL) hasSailing |
获取当前路线是否有轮渡
- (BOOL) hasSegmentTrafficLight: | (NSInteger) | index |
指定路段是否存在红绿灯
index | 路段索引 |
- (BOOL) hasToll |
获取当前路线是否有收费
- (instancetype) initWithRouteBase: | (void *) | base |
初始化路线查询方案
base | 路线 |
- (BOOL) isEqualRouteBase: | (MBRouteBase *) | route |
比较是否同一条路径
route | 待验证路径 |
- (BOOL) isTmcColorsEnabled |
Tmc蚯蚓路状态
- (void) setDirectionsFlag: | (MBDirectionsFlag) | flag |
- (void) updateTmc |
更新Tmc。
|
readwritenonatomicassign |
获取实时路况(TMC)模式样式,默认:MBTmcRouteDrawStyle_normal