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

Loading...
Searching...
No Matches
AMapNaviWalkManager.h
Go to the documentation of this file.
1//
2// AMapNaviWalkManager.h
3// AMapNaviKit
4//
5// Created by 刘博 on 16/1/13.
6// Copyright © 2016年 Amap. All rights reserved.
7//
8
9#import "AMapNaviTravelManager.h"
10#import "AMapNaviWalkDataRepresentable.h"
11
12NS_ASSUME_NONNULL_BEGIN
13
14@protocol AMapNaviWalkManagerDelegate;
15
16#pragma mark - AMapNaviWalkManager
17
20@interface AMapNaviWalkManager : AMapNaviTravelManager
21
22#pragma mark - Singleton
23
30+ (AMapNaviWalkManager *)sharedInstance;
31
38+ (BOOL)destroyInstance;
39
44- (instancetype)init __attribute__((unavailable("Since 7.4.0, init has been deprecated, please use the singleton [AMapNaviWalkManager sharedInstance] instead")));
45
46#pragma mark - Delegate
47
50@property (nonatomic, weak) id<AMapNaviWalkManagerDelegate> delegate;
51
52#pragma mark - Event Listener
53
60- (void)addEventListener:(id<AMapNaviWalkManagerDelegate>)aListener;
61
68- (void)removeEventListener:(id<AMapNaviWalkManagerDelegate>)aListener;
69
70#pragma mark - Data Representative
71
78- (void)addDataRepresentative:(id<AMapNaviWalkDataRepresentable>)aRepresentative;
79
86- (void)removeDataRepresentative:(id<AMapNaviWalkDataRepresentable>)aRepresentative;
87
88#pragma mark - Navi Route
89
92@property (nonatomic, readonly) NSInteger naviRouteID;
93
96@property (nonatomic, readonly, nullable) AMapNaviRoute *naviRoute;
97
104- (NSDictionary<NSNumber *,AMapNaviRoute *> *)naviRoutes;
105
106
113- (NSArray<NSNumber *> *)naviRouteIDs;
114
123- (BOOL)selectNaviRouteWithRouteID:(NSInteger)routeID;
124
125#pragma mark - Options
126
129@property (nonatomic, assign) BOOL isRecalculateRouteForYaw __attribute__((deprecated("Deprecated, recalculated by default, since 7.4.0")));
130
133@property (nonatomic, assign, readonly) AMapNaviGPSSignalStrength gpsSignalStrength;
134
135#pragma mark - Calculate Route
136
137// 以下算路方法需要高德坐标(GCJ02)
138// The following routing methods require Amap coordinates(GCJ02)
139
148- (BOOL)calculateWalkRouteWithEndPoints:(NSArray<AMapNaviPoint *> *)endPoints;
149
160- (BOOL)calculateWalkRouteWithStartPoints:(NSArray<AMapNaviPoint *> *)startPoints
161 endPoints:(NSArray<AMapNaviPoint *> *)endPoints;
162
175- (BOOL)calculateWalkRouteWithStartPOIInfo:(nullable AMapNaviPOIInfo *)startPOIInfo
176 endPOIInfo:(nonnull AMapNaviPOIInfo *)endPOIInfo
177 strategy:(AMapNaviTravelStrategy)strategy;
178
193- (BOOL)calculateWalkRouteWithStartPOIInfo:(nullable AMapNaviPOIInfo *)startPOIInfo
194 endPOIInfo:(nonnull AMapNaviPOIInfo *)endPOIInfo
195 wayPOIInfos:(nullable NSArray<AMapNaviPOIInfo *> *)wayPOIInfos
196 strategy:(AMapNaviTravelStrategy)strategy;
197
214- (BOOL)calculateWalkRouteWithStartPOIInfo:(nullable AMapNaviPOIInfo *)startPOIInfo
215 endPOIInfo:(nonnull AMapNaviPOIInfo *)endPOIInfo
216 wayPOIInfos:(nullable NSArray<AMapNaviPOIInfo *> *)wayPOIInfos
217 strategy:(AMapNaviTravelStrategy)strategy
218 callback:(nullable void (^)(AMapNaviCalculateRouteResult *_Nullable routeResult))callback;
219
234- (BOOL)independentCalculateWalkRouteWithStartPOIInfo:(nullable AMapNaviPOIInfo *)startPOIInfo
235 endPOIInfo:(nonnull AMapNaviPOIInfo *)endPOIInfo
236 strategy:(AMapNaviTravelStrategy)strategy
237 callback:(nullable void (^)(AMapNaviRouteGroup *_Nullable routeGroup, NSError *_Nullable error))callback;
238
255- (BOOL)independentCalculateWalkRouteWithStartPOIInfo:(nullable AMapNaviPOIInfo *)startPOIInfo
256 endPOIInfo:(nonnull AMapNaviPOIInfo *)endPOIInfo
257 wayPOIInfos:(nullable NSArray<AMapNaviPOIInfo *> *)wayPOIInfos
258 strategy:(AMapNaviTravelStrategy)strategy
259 callback:(nullable void (^)(AMapNaviRouteGroup *_Nullable routeGroup, NSError *_Nullable error))callback;
260
267- (BOOL)recalculateWalkRoute;
268
277- (BOOL)recalculateWalkRouteWithCallback:(nullable void (^)(AMapNaviCalculateRouteResult *_Nullable routeResult))callback;
278
279#pragma mark - Manual
280
287- (void)setTimeForOneWord:(int)time __attribute__((deprecated("Deprecated, use setIsPlayingTTS: instead, since 7.4.0")));
288
295- (void)setTTSPlaying:(BOOL)playing;
296
297#pragma mark - Statistics Information
298
305- (nullable AMapNaviStatisticsInfo *)getNaviStatisticsInfo __attribute__((deprecated("Deprecated, since 7.4.0")));
306
307@end
308
309#pragma mark - AMapNaviWalkManagerDelegate
310
311@protocol AMapNaviWalkManagerDelegate <NSObject>
312@optional
313
322- (void)walkManager:(AMapNaviWalkManager *)walkManager error:(NSError *)error;
323
330- (void)walkManagerOnCalculateRouteSuccess:(AMapNaviWalkManager *)walkManager;
331
340- (void)walkManagerOnCalculateRouteSuccess:(AMapNaviWalkManager *)walkManager calculateRouteResult:(AMapNaviCalculateRouteResult *)calculateRouteResult;
341
350- (void)walkManager:(AMapNaviWalkManager *)walkManager onCalculateRouteFailure:(NSError *)error;
351
362- (void)walkManager:(AMapNaviWalkManager *)walkManager onCalculateRouteFailure:(NSError *)error calculateRouteResult:(AMapNaviCalculateRouteResult *)calculateRouteResult;
363
372- (void)walkManager:(AMapNaviWalkManager *)walkManager didStartNavi:(AMapNaviMode)naviMode;
373
379- (void)walkManager:(AMapNaviWalkManager *)walkManager didStopNavi:(BOOL)isStopped;
380
387- (void)walkManagerNeedRecalculateRouteForYaw:(AMapNaviWalkManager *)walkManager;
388
399- (void)walkManager:(AMapNaviWalkManager *)walkManager playNaviSoundString:(NSString *)soundString soundStringType:(AMapNaviSoundType)soundStringType;
400
407- (void)walkManagerDidEndEmulatorNavi:(AMapNaviWalkManager *)walkManager;
408
415- (void)walkManagerOnArrivedDestination:(AMapNaviWalkManager *)walkManager;
416
425- (void)walkManager:(AMapNaviWalkManager *)walkManager updateGPSSignalStrength:(AMapNaviGPSSignalStrength)gpsSignalStrength;
426
435- (void)walkManager:(AMapNaviWalkManager *)walkManager onArrivedWayPoint:(int)wayPointIndex;
436@end
437
438NS_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
AMapNaviTravelManager.h
AMapNaviWalkDataRepresentable.h
AMapNaviCalculateRouteResult
Definition AMapNaviRoute.h:325
AMapNaviPOIInfo
Definition AMapNaviCommonObj.h:1326
AMapNaviPoint
Definition AMapNaviCommonObj.h:614
AMapNaviRouteGroup
Definition AMapNaviRoute.h:335
AMapNaviRoute
Definition AMapNaviRoute.h:186
AMapNaviStatisticsInfo
Definition AMapNaviStatisticsInfo.h:13
AMapNaviTravelManager
Definition AMapNaviTravelManager.h:16
AMapNaviWalkManager
Definition AMapNaviWalkManager.h:21
AMapNaviWalkManager::delegate
id< AMapNaviWalkManagerDelegate > delegate
Definition AMapNaviWalkManager.h:50
+[AMapNaviWalkManager sharedInstance]
AMapNaviWalkManager * sharedInstance()
AMapNaviWalkManager单例。注意：如果已经获取了AMapNaviDriveManager单例，需要调用destroyInstance方法销毁单例，再获取步行导航单例。since 10....
+[AMapNaviWalkManager destroyInstance]
BOOL destroyInstance()
销毁AMapNaviWalkManager单例. since 7.4.0 Destroy AMapNaviWalkManager singleton
AMapNaviWalkManager::gpsSignalStrength
AMapNaviGPSSignalStrength gpsSignalStrength
Definition AMapNaviWalkManager.h:133
-[AMapNaviWalkManager init]
instancetype init()
请使用单例替代. since 7.4.0 init已被禁止使用，请使用单例 [AMapNaviWalkManager sharedInstance] 替代 Please use singleton in...
-[AMapNaviWalkManager getNaviStatisticsInfo]
nullable AMapNaviStatisticsInfo * getNaviStatisticsInfo()
获取导航统计信息 Obtain navigation statistics
AMapNaviWalkManager::naviRouteID
NSInteger naviRouteID
Definition AMapNaviWalkManager.h:92
AMapNaviWalkManager::isRecalculateRouteForYaw
BOOL isRecalculateRouteForYaw
Definition AMapNaviWalkManager.h:129
-[AMapNaviWalkManager recalculateWalkRoute]
BOOL recalculateWalkRoute()
导航过程中重新规划路径(起点为当前位置,终点位置不变) Re-planning the route during navigation (starting from the current locati...
AMapNaviWalkManager::naviRoute
AMapNaviRoute * naviRoute
Definition AMapNaviWalkManager.h:96
-[AMapNaviWalkManager naviRoutes]
NSDictionary< NSNumber *, AMapNaviRoute * > * naviRoutes()
多路径规划时的所有路径信息 since 7.5.0 All path information during multi-path planning
-[AMapNaviWalkManager naviRouteIDs]
NSArray< NSNumber * > * naviRouteIDs()
多路径规划时的所有路径ID,路径ID为 NSInteger 类型 since 7.5.0 All path IDs during multi-path planning,...
© 2017 高德信息技术有限公司 版权所有，保留所有权利。