高德地图SDK(导航) V11.2.0501

Loading...
Searching...
No Matches
AMapNaviEleBikeManager.h
Go to the documentation of this file.
1//
2// AMapNaviEleBikeManager.h
3// AMapNaviKit
4//
5// Created by yuanmenglong on 2021/3/31.
6// Copyright © 2021 Amap. All rights reserved.
7//
8
9
10#import "AMapNaviTravelManager.h"
11#import "AMapNaviEleBikeDataRepresentable.h"
12
13@protocol AMapNaviEleBikeManagerDelegate;
14NS_ASSUME_NONNULL_BEGIN
15
18@interface AMapNaviEleBikeManager : AMapNaviTravelManager
19
20#pragma mark - Singleton
21
28+ (instancetype)sharedInstance;
29
36+ (BOOL)destroyInstance;
37
42- (instancetype)init __attribute__((unavailable("Since 8.0.0, init has been deprecated, please use the singleton [AMapNaviEleBikeManager sharedInstance] instead")));
43
44#pragma mark - Delegate
45
48@property (nonatomic, weak) id<AMapNaviEleBikeManagerDelegate> delegate;
49
50#pragma mark - Lane Navi
51
56@property (nonatomic, assign) BOOL rideLaneNaviEnabled;
57
58#pragma mark - Data Representative
59
66- (void)addDataRepresentative:(id<AMapNaviEleBikeDataRepresentable>)aRepresentative;
67
74- (void)removeDataRepresentative:(id<AMapNaviEleBikeDataRepresentable>)aRepresentative;
75
82- (void)addEventListener:(id<AMapNaviEleBikeManagerDelegate>)aListener;
83
90- (void)removeEventListener:(id<AMapNaviEleBikeManagerDelegate>)aListener;
91
92
93#pragma mark - Navi Route
94
97@property (nonatomic, readonly) NSInteger naviRouteID;
98
101@property (nonatomic, readonly, nullable) AMapNaviRoute *naviRoute;
102
109- (NSDictionary<NSNumber *,AMapNaviRoute *> *)naviRoutes;
110
111
118- (NSArray<NSNumber *> *)naviRouteIDs;
119
128- (BOOL)selectNaviRouteWithRouteID:(NSInteger)routeID;
129
132@property (nonatomic, assign, readonly) AMapNaviGPSSignalStrength gpsSignalStrength;
133
134#pragma mark - Calculate Route
135
136// 以下算路方法需要高德坐标(GCJ02)
137// The following routing methods require Amap coordinates(GCJ02)
138
147- (BOOL)calculateEleBikeRouteWithEndPoint:(AMapNaviPoint *)endPoint;
148
159- (BOOL)calculateEleBikeRouteWithStartPoint:(AMapNaviPoint *)startPoint
160 endPoint:(AMapNaviPoint *)endPoint;
161
174- (BOOL)calculateEleBikeRouteWithStartPOIInfo:(nullable AMapNaviPOIInfo *)startPOIInfo
175 endPOIInfo:(nonnull AMapNaviPOIInfo *)endPOIInfo
176 strategy:(AMapNaviTravelStrategy)strategy;
177
192- (BOOL)calculateEleBikeRouteWithStartPOIInfo:(nullable AMapNaviPOIInfo *)startPOIInfo
193 endPOIInfo:(nonnull AMapNaviPOIInfo *)endPOIInfo
194 strategy:(AMapNaviTravelStrategy)strategy
195 callback:(nullable void (^)(AMapNaviCalculateRouteResult *_Nullable routeResult))callback;
196
211- (BOOL)independentCalculateEleBikeRouteWithStartPOIInfo:(nullable AMapNaviPOIInfo *)startPOIInfo
212 endPOIInfo:(nonnull AMapNaviPOIInfo *)endPOIInfo
213 strategy:(AMapNaviTravelStrategy)strategy
214 callback:(nullable void (^)(AMapNaviRouteGroup *_Nullable routeGroup, NSError *_Nullable error))callback;
215
222- (BOOL)recalculateEleBikeRoute;
223
232- (BOOL)recalculateEleBikeRouteWithCallback:(nullable void (^)(AMapNaviCalculateRouteResult *_Nullable routeResult))callback;
233
234#pragma mark - Manual
235
242- (void)setTTSPlaying:(BOOL)playing;
243
244@end
245
246
247#pragma mark - AMapNaviRideManagerDelegate
248
249@protocol AMapNaviEleBikeManagerDelegate <NSObject>
250@optional
251
260- (void)rideManager:(AMapNaviEleBikeManager *)eleBikeManager error:(NSError *)error;
261
268- (void)rideManagerOnCalculateRouteSuccess:(AMapNaviEleBikeManager *)eleBikeManager;
269
276- (void)rideManagerOnCalculateRouteSuccess:(AMapNaviEleBikeManager *)eleBikeManager calculateRouteResult:(AMapNaviCalculateRouteResult *)calculateRouteResult;
277
286- (void)rideManager:(AMapNaviEleBikeManager *)eleBikeManager onCalculateRouteFailure:(NSError *)error;
287
296- (void)rideManager:(AMapNaviEleBikeManager *)eleBikeManager onCalculateRouteFailure:(NSError *)error calculateRouteResult:(AMapNaviCalculateRouteResult *)calculateRouteResult;
297
306- (void)rideManager:(AMapNaviEleBikeManager *)eleBikeManager didStartNavi:(AMapNaviMode)naviMode;
307
313- (void)rideManager:(AMapNaviEleBikeManager *)eleBikeManager didStopNavi:(BOOL)isStopped;
314
321- (void)rideManagerNeedRecalculateRouteForYaw:(AMapNaviEleBikeManager *)eleBikeManager;
322
333- (void)rideManager:(AMapNaviEleBikeManager *)eleBikeManager playNaviSoundString:(NSString *)soundString soundStringType:(AMapNaviSoundType)soundStringType;
334
341- (void)rideManagerDidEndEmulatorNavi:(AMapNaviEleBikeManager *)eleBikeManager;
342
349- (void)rideManagerOnArrivedDestination:(AMapNaviEleBikeManager *)eleBikeManager;
350
359- (void)rideManager:(AMapNaviEleBikeManager *)eleBikeManager updateGPSSignalStrength:(AMapNaviGPSSignalStrength)gpsSignalStrength;
360
361@end
362
363NS_ASSUME_NONNULL_END
AMapNaviGPSSignalStrength
AMapNaviGPSSignalStrength
Definition AMapNaviCommonObj.h:351
AMapNaviMode
AMapNaviMode
Definition AMapNaviCommonObj.h:38
AMapNaviTravelStrategy
AMapNaviTravelStrategy
Definition AMapNaviCommonObj.h:64
AMapNaviSoundType
AMapNaviSoundType
Definition AMapNaviCommonObj.h:201
AMapNaviEleBikeDataRepresentable.h
AMapNaviTravelManager.h
AMapNaviCalculateRouteResult
Definition AMapNaviRoute.h:325
AMapNaviEleBikeManager
Definition AMapNaviEleBikeManager.h:19
-[AMapNaviEleBikeManager naviRouteIDs]
NSArray< NSNumber * > * naviRouteIDs()
多路径规划时的所有路径ID,路径ID为 NSInteger 类型 since 8.0.0 All path IDs during multi-path planning,...
+[AMapNaviEleBikeManager sharedInstance]
instancetype sharedInstance()
AMapNaviEleBikeManager单例. since 8.0.0 AMapNaviEleBikeManager singleton.
-[AMapNaviEleBikeManager init]
instancetype init()
请使用单例替代. since 8.0.0 init已被禁止使用，请使用单例 [AMapNaviEleBikeManager sharedInstance] 替代 Please use singleton...
AMapNaviEleBikeManager::rideLaneNaviEnabled
BOOL rideLaneNaviEnabled
是否开启电动车骑行车道级导航，默认开启。建议在算路前设置。 Whether electric bike lane-level navigation is enabled....
Definition AMapNaviEleBikeManager.h:56
AMapNaviEleBikeManager::gpsSignalStrength
AMapNaviGPSSignalStrength gpsSignalStrength
Definition AMapNaviEleBikeManager.h:132
AMapNaviEleBikeManager::naviRoute
AMapNaviRoute * naviRoute
Definition AMapNaviEleBikeManager.h:101
+[AMapNaviEleBikeManager destroyInstance]
BOOL destroyInstance()
销毁AMapNaviEleBikeManager单例. since 8.0.0 Destroy AMapNaviEleBikeManager singleton
-[AMapNaviEleBikeManager naviRoutes]
NSDictionary< NSNumber *, AMapNaviRoute * > * naviRoutes()
多路径规划时的所有路径信息 since 8.0.0 All path information during multi-path planning
-[AMapNaviEleBikeManager recalculateEleBikeRoute]
BOOL recalculateEleBikeRoute()
导航过程中重新规划路径(起点为当前位置,终点位置不变) Re-planning the route during navigation (starting from the current locati...
AMapNaviEleBikeManager::naviRouteID
NSInteger naviRouteID
Definition AMapNaviEleBikeManager.h:97
AMapNaviEleBikeManager::delegate
id< AMapNaviEleBikeManagerDelegate > delegate
Definition AMapNaviEleBikeManager.h:48
AMapNaviPOIInfo
Definition AMapNaviCommonObj.h:1326
AMapNaviPoint
Definition AMapNaviCommonObj.h:614
AMapNaviRouteGroup
Definition AMapNaviRoute.h:335
AMapNaviRoute
Definition AMapNaviRoute.h:186
AMapNaviTravelManager
Definition AMapNaviTravelManager.h:16
© 2017 高德信息技术有限公司 版权所有，保留所有权利。