BaiduMap_IOSSDK_v7.1.0_Docs 7.1.0

BMKDrivingRouteSearchOption.h
浏览该文件的文档.
1 //
2 // BMKDrivingRouteSearchOption.h
3 // SearchComponent
4 //
5 // Created by zhangbaojin on 2026/1/8.
6 // Copyright © 2026 Baidu. All rights reserved.
7 //
8
9 #import <Foundation/Foundation.h>
10 #import <CoreLocation/CoreLocation.h>
11 #import "BMKDrivingRouteSearchType.h"
12 #import "BMKRouteSearchType.h"
13
14 NS_ASSUME_NONNULL_BEGIN
15
18 @interface BMKDrivingRouteSearchOption : NSObject
19
23 @property (nonatomic, strong) BMKPlanNode *origin;
24
28 @property (nonatomic, strong) BMKPlanNode *destination;
29
33 @property (nonatomic, copy, nullable) NSArray<BMKPlanNode *> *waypoints;
34
36 @property (nonatomic, assign) BMKDrivingRouteSearchTactics tactics;
37
39 @property (nonatomic, assign) BMKDrivingRouteSearchAlternatives alternatives;
40
42 @property (nonatomic, assign) BMKDrivingRouteSearchCarType carType;
43
45 @property (nonatomic, copy, nullable) NSString *plateNumber;
46
49 @property (nonatomic, assign) NSTimeInterval departureTime;
50
53 @property (nonatomic, copy, nullable) NSString *extDepartureTime;
54
57 @property (nonatomic, assign) NSTimeInterval expectArrivalTime;
58
62 @property (nonatomic, assign) NSInteger gpsDirection;
63
65 @property (nonatomic, assign) CGFloat radius;
66
69 @property (nonatomic, assign) CGFloat speed;
70
73 @property (nonatomic, assign) NSInteger intelligentPlan;
74
76 @property (nonatomic, assign) NSInteger walkInfo;
77
79 @property (nonatomic, assign) NSInteger stepsInfo;
80
82 @property (nonatomic, assign) BMKDrivingRouteSearchOriginBindStrategy originBindStrategy;
83
85 @property (nonatomic, assign) BMKDrivingRouteSearchDestBindStrategy destBindStrategy;
86
88 @property (nonatomic, assign) BMKDrivingRouteSearchOriginRoadType originRoadType;
89
93 @property (nonatomic, assign) BOOL isOriginBindAoi;
94 @end
95
96 NS_ASSUME_NONNULL_END
BMKDrivingRouteSearchOption::walkInfo
NSInteger walkInfo
起终点步导路线。1 表示下发起终点步导路线；0 不下发起终点步导路线；默认值为0
Definition: BMKDrivingRouteSearchOption.h:76
BMKDrivingRouteSearchOption::stepsInfo
NSInteger stepsInfo
是否下发step详情。1：下发step详情；0：不下发step详情
Definition: BMKDrivingRouteSearchOption.h:79
BMKDrivingRouteSearchOption::destination
BMKPlanNode * destination
Definition: BMKDrivingRouteSearchOption.h:28
BMKDrivingRouteSearchOption::gpsDirection
NSInteger gpsDirection
Definition: BMKDrivingRouteSearchOption.h:62
BMKDrivingRouteSearchOption::intelligentPlan
NSInteger intelligentPlan
Definition: BMKDrivingRouteSearchOption.h:73
BMKDrivingRouteSearchOption::origin
BMKPlanNode * origin
Definition: BMKDrivingRouteSearchOption.h:23
BMKDrivingRouteSearchType.h
BMKDrivingRouteSearchOption::speed
CGFloat speed
Definition: BMKDrivingRouteSearchOption.h:69
BMKDrivingRouteSearchOption::carType
BMKDrivingRouteSearchCarType carType
车辆类型，区分车辆是普通燃油车或纯电动汽车，默认普通汽车
Definition: BMKDrivingRouteSearchOption.h:42
BMKDrivingRouteSearchOption::tactics
BMKDrivingRouteSearchTactics tactics
路线策略，默认使用BMK_DRIVING_ROUTE_SEARCH_TACTICS_DEFAULT
Definition: BMKDrivingRouteSearchOption.h:36
BMKDrivingRouteSearchOption::plateNumber
NSString * plateNumber
车牌号，用于规避车牌号限行路段。如：京A00022
Definition: BMKDrivingRouteSearchOption.h:45
BMKDrivingRouteSearchOption
Definition: BMKDrivingRouteSearchOption.h:19
BMKDrivingRouteSearchOption::alternatives
BMKDrivingRouteSearchAlternatives alternatives
是否返回备选路线，默认返回一条推荐路线
Definition: BMKDrivingRouteSearchOption.h:39
BMKDrivingRouteSearchOption::expectArrivalTime
NSTimeInterval expectArrivalTime
Definition: BMKDrivingRouteSearchOption.h:57
BMKDrivingRouteSearchOption::departureTime
NSTimeInterval departureTime
Definition: BMKDrivingRouteSearchOption.h:49
BMKDrivingRouteSearchOption::radius
CGFloat radius
起点的定位精度，取值范围[0,2000]，配合gpsDirection字段使用
Definition: BMKDrivingRouteSearchOption.h:65
BMKDrivingRouteSearchOption::isOriginBindAoi
BOOL isOriginBindAoi
Definition: BMKDrivingRouteSearchOption.h:93
BMKDrivingRouteSearchOption::destBindStrategy
BMKDrivingRouteSearchDestBindStrategy destBindStrategy
终点绑路策略。0-终点绑路不剔除封闭道路；1-终点绑路剔除封闭道路
Definition: BMKDrivingRouteSearchOption.h:85
BMKRouteSearchType.h
BMKDrivingRouteSearchOption::waypoints
NSArray< BMKPlanNode * > * waypoints
Definition: BMKDrivingRouteSearchOption.h:33
BMKPlanNode
线路检索节点信息,一个路线检索节点可以通过经纬度坐标或城市名加地名确定
Definition: BMKTypes.h:362
BMKDrivingRouteSearchOption::originBindStrategy
BMKDrivingRouteSearchOriginBindStrategy originBindStrategy
起点绑路策略。0-起点绑路不剔除封闭道路；1-起点绑路剔除封闭道路
Definition: BMKDrivingRouteSearchOption.h:82
BMKDrivingRouteSearchOption::originRoadType
BMKDrivingRouteSearchOriginRoadType originRoadType
起点道路类型。0 普通道路[默认。绑路策略不参考此入参]；1高架上；2高架下；3主路；4辅路
Definition: BMKDrivingRouteSearchOption.h:88
BMKDrivingRouteSearchOption::extDepartureTime
NSString * extDepartureTime
Definition: BMKDrivingRouteSearchOption.h:53