BaiduMap_IOSSDK_v6.6.7_Docs 6.6.7

BMKNavigation.h
浏览该文件的文档.
1 /*
2 * BMKNavigation.h
3 * BMapKit
4 *
5 * Copyright 2011 Baidu Inc. All rights reserved.
6 *
7 */
8 #import <UIKit/UIKit.h>
9 #import <BaiduMapAPI_Base/BMKTypes.h>
10 //定义调起导航的两种类型
11 //注：自2.8.0开始废弃，只支持调起客户端导航，在调起客户端导航时，才会调起web导航
12 typedef enum
13 {
14 BMK_NAVI_TYPE_NATIVE = 0,
15 BMK_NAVI_TYPE_WEB
16 } BMK_NAVI_TYPE;
17
18 typedef enum
19 {
20 BMK_NAVI_ROUTE_PLAN_TYPE_BLK = 0,
21 BMK_NAVI_ROUTE_PLAN_TYPE_TIME,
22 BMK_NAVI_ROUTE_PLAN_TYPE_DIS,
23 BMK_NAVI_ROUTE_PLAN_TYPE_FEE,
24 BMK_NAVI_ROUTE_PLAN_TYPE_DEFAULT,
25 BMK_NAVI_ROUTE_PLAN_TYPE_ECONOMICS
26 } BMK_NAVI_ROUTE_PLAN_TYPE;
27
29 @interface BMKNaviPara : NSObject
30 {
31 BMKPlanNode* _startPoint;
32 BMKPlanNode* _endPoint;
33 BMK_NAVI_TYPE _naviType;
34 NSString* _appScheme;
35 NSString* _appName;
36 }
38 @property (nonatomic, strong) BMKPlanNode *startPoint;
40 @property (nonatomic, strong) BMKPlanNode *endPoint;
42 @property (nonatomic, assign) BMK_NAVI_TYPE naviType __deprecated_msg("自2.8.0开始废弃");
44 @property (nonatomic, copy) NSString *appScheme;
46 @property (nonatomic, copy) NSString *appName;
48 @property (nonatomic, assign) BOOL isSupportWeb;
50 @property (nonatomic, assign) BMK_NAVI_ROUTE_PLAN_TYPE preferenceType;
52 @property (nonatomic, strong) NSArray<BMKPlanNode *> *viaPoints;
53
54 @end
55
57 @interface BMKTruckNaviPara : BMKNaviPara
59 @property (nonatomic, assign) float height;
61 @property (nonatomic, assign) float width;
63 @property (nonatomic, assign) float weight;
65 @property (nonatomic, assign) float length;
67 @property (nonatomic, assign) float axleWeight;
69 @property (nonatomic, assign) int axleCount;
71 @property (nonatomic, assign) BOOL isTrailer;
73 @property (nonatomic, copy) NSString *plateProvince;
75 @property (nonatomic, copy) NSString *plateNumber;
77 @property (nonatomic, assign) int plateColor;
79 @property (nonatomic, assign) float displacement;
81 @property (nonatomic, assign) int powerType;
83 @property (nonatomic, assign) int emissionLimit;
85 @property (nonatomic, assign) BOOL loadWeight;
86
87 @end
88
90 @interface BMKNavigation : NSObject
91
96 + (BMKOpenErrorCode)openBaiduMapNavigation:(BMKNaviPara *)para;
97
103 + (BMKOpenErrorCode)openBaiduMapWalkNavigation:(BMKNaviPara *)para;
104
110 + (BMKOpenErrorCode)openBaiduMapRideNavigation:(BMKNaviPara *)para;
116 + (BMKOpenErrorCode)openBaiduMapwalkARNavigation:(BMKNaviPara *)para;
117
122 + (BMKOpenErrorCode)openBaiduMapNewEngNavigation:(BMKNaviPara *)para;
123
129 + (BMKOpenErrorCode)openBaiduMapTruckNavigation:(BMKTruckNaviPara *)para;
130
135 + (BMKOpenErrorCode)openBaiduMapMotorNavigation:(BMKNaviPara *)para;
136
137 @end
138
139
BMKTruckNaviPara::plateColor
int plateColor
车牌颜色,0:蓝色(默认) 1:黄 2:黑 3:白 4:绿,可选
Definition: BMKNavigation.h:77
-[BMKNaviPara __deprecated_msg]
BMK_NAVI_TYPE naviType __deprecated_msg("自2.8.0开始废弃")
导航类型 注：自2.8.0开始废弃，只支持调起客户端导航，在调起客户端导航时，才会调起web导航
BMKNaviPara::_appName
NSString * _appName
Definition: BMKNavigation.h:35
BMKTruckNaviPara::emissionLimit
int emissionLimit
排放标准 。取值范围1-6，对 应国1-国6标准,可选
Definition: BMKNavigation.h:83
BMKTruckNaviPara::loadWeight
BOOL loadWeight
核定载重。单位吨，范围[0,100],可选
Definition: BMKNavigation.h:85
BMKTruckNaviPara
货车导航参数
Definition: BMKNavigation.h:58
BMKTruckNaviPara::axleWeight
float axleWeight
轴重,单位吨,范围[0,100],可选
Definition: BMKNavigation.h:67
BMKTruckNaviPara::weight
float weight
车辆总重,单位吨,范围[0,100],可选
Definition: BMKNavigation.h:63
BMKTruckNaviPara::displacement
float displacement
百公里油耗，单位L,可选
Definition: BMKNavigation.h:79
BMKTruckNaviPara::length
float length
车辆长度,单位米,范围[0,25],可选
Definition: BMKNavigation.h:65
BMKTruckNaviPara::height
float height
车辆高度,单位米，范围[0,10],可选
Definition: BMKNavigation.h:59
BMKNaviPara::_endPoint
BMKPlanNode * _endPoint
Definition: BMKNavigation.h:32
BMKOpenErrorCode
BMKOpenErrorCode
调起百度地图结果状态码
Definition: BMKTypes.h:163
BMKTruckNaviPara::plateProvince
NSString * plateProvince
车牌省份，如京，粤,可选
Definition: BMKNavigation.h:73
BMKTruckNaviPara::plateNumber
NSString * plateNumber
车牌号码，省份外的号码，如B69999,可选
Definition: BMKNavigation.h:75
BMKTruckNaviPara::powerType
int powerType
动力类型1-汽油;2-柴油;3-电动;4-混合,可选
Definition: BMKNavigation.h:81
BMKPlanNode
线路检索节点信息,一个路线检索节点可以通过经纬度坐标或城市名加地名确定
Definition: BMKTypes.h:360
BMKNaviPara
此类管理调起导航时传入的参数
Definition: BMKNavigation.h:30
BMKTruckNaviPara::isTrailer
BOOL isTrailer
是否挂车,可选
Definition: BMKNavigation.h:71
BMKNaviPara::_appScheme
NSString * _appScheme
Definition: BMKNavigation.h:34
BMKTruckNaviPara::width
float width
车辆宽度, 单位米，范围[0,5],可选
Definition: BMKNavigation.h:61
BMKTruckNaviPara::axleCount
int axleCount
轴数,范围[0, 50],可选
Definition: BMKNavigation.h:69
BMKNaviPara::_naviType
BMK_NAVI_TYPE _naviType
Definition: BMKNavigation.h:33
BMKNaviPara::_startPoint
BMKPlanNode * _startPoint
Definition: BMKNavigation.h:31