OpenSDK8.1.1
Loading...
Searching...
No Matches
BNCarRouteStepModel Class Reference

路段信息 More...

#include <BNCarRouteData.h>

Inheritance diagram for BNCarRouteStepModel:

Properties

NSArray< BNGCJPosition * > * coordinates
 返回当前路线信息所有坐标点
NSInteger distance
 以米为单位的路线长度
NSInteger time
 以秒为单位的路线花费时间
NSString * linkFormatTip
 路段的提示语,按照html格式组织
NSInteger turn
 该路段导航转向类型
BNPosition * startPoint
BNPosition * endPoint
NSArray< NSNumber * > * pointCountArrayOfSameRC
NSArray< NSNumber * > * roadConditonTypeArray

Detailed Description

路段信息

Property Documentation

◆ pointCountArrayOfSameRC

- (NSArray<NSNumber*>*) pointCountArrayOfSameRC
readwritenonatomiccopy

取路况数据需要使用到 coordinates、 pointCountArrayOfSameRC、roadConditonTypeArray。 具体使用描述如下 路况区间数量 如: coordinates = [BNGCJPosition,BNGCJPosition,BNGCJPosition....]; pointCountArrayOfSameRC = [(100),(24),(56)]; roadConditonTypeArray = [(BNCarRouteRoadConditonType_Type_Straightway), (BNCarRouteRoadConditonType_Type_Slow), (BNCarRouteRoadConditonType_Type_Obstruction) ]; 分别有3段不一样的路况数据。 (100)代表在 coordinates 中 取0....100之间的数据,这段坐标数据对应对路况类型roadConditonTypeArray[0]。 (24)代表在 coordinates 中 取100...(100+24)之间的数据,这段坐标数据对应对路况类型roadConditonTypeArray[1]。 (56)代表在 coordinates 中 取(100+24)...(100+24+56)之间的数据,这段坐标数据对应对路况类型roadConditonTypeArray[2]。

特例:如pointCountArrayOfSameRC 只有一个数据而且数据是0.那么对应coordinates。就取得第一个

◆ roadConditonTypeArray

- (NSArray<NSNumber*>*) roadConditonTypeArray
readwritenonatomiccopy

@abstract 描述路况信息 路况的[(BNCarRouteRoadConditonType),(BNCarRouteRoadConditonType)]


The documentation for this class was generated from the following file: