DMKMapNaviDriveManager Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | DMKMapNaviDriveManager.h DMKMapNaviDriveManager.m |
Other Methods
– initWithMapView:
初始化方法
- (instancetype)initWithMapView:(DMKMapView *)dmkMapViewParameters
dmkMapView |
地图view |
|---|
Declared In
DMKMapNaviDriveManager.h
crossImageView
放大图view
@property (nonatomic, strong) DMKMapNaviCrossView *crossImageViewDiscussion
放大图view
Declared In
DMKMapNaviDriveManager.h
delegate
实现了 DMKMapNaviDriveManagerDelegate 协议的类指针
@property (nonatomic, weak) id<DMKMapNaviDriveManagerDelegate> delegateDiscussion
实现了 DMKMapNaviDriveManagerDelegate 协议的类指针
Declared In
DMKMapNaviDriveManager.h
– addEventListener:
增加用于接收导航回调事件的Listener, 效果等同于delegate. 注意:该方法不会增加实例对象的引用计数(Weak Reference).
- (void)addEventListener:(id<DMKMapNaviDriveManagerDelegate>)aListenerParameters
aListener |
实现了 DMKMapNaviDriveManagerDelegate 协议的实例 |
|---|
Declared In
DMKMapNaviDriveManager.h
– removeEventListener:
移除用于接收导航回调事件的Listener.
- (void)removeEventListener:(id<DMKMapNaviDriveManagerDelegate>)aListenerParameters
aListener |
实现了 AMapNaviDriveManagerDelegate 协议的实例 |
|---|
Declared In
DMKMapNaviDriveManager.h
– addDataRepresentative:
增加用于展示导航数据的DataRepresentative.注意:该方法不会增加实例对象的引用计数(Weak Reference)
- (void)addDataRepresentative:(id<DMKMapNaviDriveDataRepresentable>)aRepresentativeParameters
aRepresentative |
实现了 AMapNaviDriveDataRepresentable 协议的实例 |
|---|
Declared In
DMKMapNaviDriveManager.h
– removeDataRepresentative:
移除用于展示导航数据的DataRepresentative
- (void)removeDataRepresentative:(id<DMKMapNaviDriveDataRepresentable>)aRepresentativeParameters
aRepresentative |
实现了 AMapNaviDriveDataRepresentable 协议的实例 |
|---|
Declared In
DMKMapNaviDriveManager.h
– calculateDriveRouteWithStartPoint:endPoint:wayPoints:drivingStrategy:
带起点的驾车路径规划
- (BOOL)calculateDriveRouteWithStartPoint:(DMKMapNaviPoint *)startPoints endPoint:(DMKMapNaviPoint *)endPoints wayPoints:(nullable NSArray<DMKMapNaviPoint*> *)wayPoints drivingStrategy:(DMKMapNaviDrivingStrategy)strategyParameters
startPoints |
起点坐标.起点列表的尾点为实时导航起点,其他坐标点为辅助信息,带有方向性,可有效避免算路到马路的另一侧. |
|---|---|
endPoints |
终点坐标.终点列表的尾点为实时导航终点,其他坐标点为辅助信息,带有方向性,可有效避免算路到马路的另一侧. |
wayPoints |
途经点坐标,最多支持16个途经点. 超过16个会取前16个 |
strategy |
时间优先或距离优先 |
Return Value
规划路径所需条件和参数校验是否成功,不代表算路成功与否
Declared In
DMKMapNaviDriveManager.h
– startGPSNavi
开始实时导航. 注意:必须在路径规划成功的情况下,才能够开始实时导航
- (BOOL)startGPSNaviReturn Value
是否成功
Declared In
DMKMapNaviDriveManager.h
– switchParallelRoad:
切换平行道路, 包括主辅路切换、高架上下切换. 该方法需要配合 DMKapNaviDriveDataRepresentable 的 driveManager:updateParallelRoadStatus: 回调使用.
- (void)switchParallelRoad:(DMKMapNaviParallelRoadInfo *)parallelRoadInfoParameters
parallelRoadInfo |
平行路切换信息,参考 DMKapNaviParallelRoadInfo. |
|---|
Declared In
DMKMapNaviDriveManager.h
– setVehicleInfo:
设置车辆信息 - Parameter vehicleInfo: 车辆信息,参考 DMKNaviVehicleInfo. 如果要清空已设置的车辆信息,传入nil即可
- (void)setVehicleInfo:(nullable DMKNaviVehicleInfo *)vehicleInfoDiscussion
设置车辆信息 - Parameter vehicleInfo: 车辆信息,参考 DMKNaviVehicleInfo. 如果要清空已设置的车辆信息,传入nil即可
Declared In
DMKMapNaviDriveManager.h
Extension Methods
weakDelegates
DriveManagerDelegates
@property (nonatomic, strong) NSHashTable<id<DMKMapNaviDriveManagerDelegate> > *weakDelegatesDiscussion
DriveManagerDelegates
Declared In
DMKMapNaviDriveManager.m
weakDataRepresentables
DataRepresentables
@property (nonatomic, strong) NSHashTable<id<DMKMapNaviDriveDataRepresentable> > *weakDataRepresentablesDiscussion
DataRepresentables
Declared In
DMKMapNaviDriveManager.m
search
算路管理类
@property (nonatomic, strong) DSearch *searchDiscussion
算路管理类
Declared In
DMKMapNaviDriveManager.m
routeResult
算路结果
@property (nonatomic, strong) DiRouteResult *routeResultDiscussion
算路结果
Declared In
DMKMapNaviDriveManager.m
locationManager
定位
@property (nonatomic, strong) CLLocationManager *locationManagerDiscussion
定位
Declared In
DMKMapNaviDriveManager.m
startPoint
起点
@property (nonatomic, strong) DiPlaceInfo *startPointDiscussion
起点
Declared In
DMKMapNaviDriveManager.m
endPoint
终点
@property (nonatomic, strong) DiPlaceInfo *endPointDiscussion
终点
Declared In
DMKMapNaviDriveManager.m
passPoints
途经点
@property (nonatomic, strong) NSMutableArray<DiPlaceInfo*> *passPointsDiscussion
途经点
Declared In
DMKMapNaviDriveManager.m
drivingStrategy
请求类型
@property (nonatomic, assign) DMKMapNaviDrivingStrategy drivingStrategyDiscussion
请求类型
Declared In
DMKMapNaviDriveManager.m
vehicleInfo
车辆信息
@property (nonatomic, strong) DMKNaviVehicleInfo *vehicleInfoDiscussion
车辆信息
Declared In
DMKMapNaviDriveManager.m
simulate
模拟定位
@property (nonatomic, strong) DMKMapNaviDriveSimulate *simulateDiscussion
模拟定位
Declared In
DMKMapNaviDriveManager.m