高德地图SDK(导航)  V11.1.000
AMapNaviWalkManager Class Reference

#import <AMapNaviWalkManager.h>

Inheritance diagram for AMapNaviWalkManager:
AMapNaviTravelManager AMapNaviBaseManager

Instance Methods

(instancetype) - init
 请使用单例替代. since 7.4.0 init已被禁止使用,请使用单例 [AMapNaviWalkManager sharedInstance] 替代 Please use singleton instead. Since 7.4.0, init has been deprecated, please use the singleton [AMapNaviWalkManager sharedInstance] instead. More...
 
(void) - addEventListener:
 增加用于接收导航回调事件的Listener, 效果等同于delegate. 注意:该方法不会增加实例对象的引用计数(Weak Reference). since 8.0.1 Add a Listener to receive navigation callback events, which is equivalent to a delegate. Note: This method does not increase the reference count of the instance object (Weak Reference) More...
 
(void) - removeEventListener:
 移除用于接收导航回调事件的Listener. since 8.0.1 Remove the Listener used to receive navigation callback events More...
 
(void) - addDataRepresentative:
 增加用于展示导航数据的DataRepresentative.注意:该方法不会增加实例对象的引用计数(Weak Reference) Add the DataRepresentative used to display navigation data. Note: This method will not increase the reference count of the instance object (Weak Reference) More...
 
(void) - removeDataRepresentative:
 移除用于展示导航数据的DataRepresentative Remove the DataRepresentative used to display navigation data More...
 
(NSDictionary< NSNumber *, AMapNaviRoute * > *) - naviRoutes
 多路径规划时的所有路径信息 since 7.5.0 All path information during multi-path planning More...
 
(NSArray< NSNumber * > *) - naviRouteIDs
 多路径规划时的所有路径ID,路径ID为 NSInteger 类型 since 7.5.0 All path IDs during multi-path planning, where path IDs are of type NSInteger More...
 
(BOOL) - selectNaviRouteWithRouteID:
 多路径规划时选择路径.注意:该方法仅限于在开始导航前使用,开始导航后该方法无效 since 7.5.0 Select route during multi-path planning.Note: This method can only be used before starting navigation and becomes invalid after navigation begins More...
 
(BOOL) - calculateWalkRouteWithEndPoints:
 不带起点的步行路径规划 Walking route planning without starting point More...
 
(BOOL) - calculateWalkRouteWithStartPoints:endPoints:
 带起点的步行路径规划 Walking route planning with starting point More...
 
(BOOL) - calculateWalkRouteWithStartPOIInfo:endPOIInfo:strategy:
 根据高德POIInfo进行步行路径规划. since 7.5.0 Plan the walking route based on Amap POIInfo More...
 
(BOOL) - calculateWalkRouteWithStartPOIInfo:endPOIInfo:wayPOIInfos:strategy:
 POI算路。since 9.3.5 POI routing. More...
 
(BOOL) - calculateWalkRouteWithStartPOIInfo:endPOIInfo:wayPOIInfos:strategy:callback:
 POI算路。since 10.1.111 POI routing. More...
 
(BOOL) - independentCalculateWalkRouteWithStartPOIInfo:endPOIInfo:strategy:callback:
 独立算路能力接口,可用于不干扰本次导航的单独算路场景. since 7.8.0 Independent routing capability interface, which can be used for standalone routing scenarios without interfering with the current navigation More...
 
(BOOL) - independentCalculateWalkRouteWithStartPOIInfo:endPOIInfo:wayPOIInfos:strategy:callback:
 独立算路能力接口,可用于不干扰本次导航的单独算路场景。特别注意:当前接口为收费接口,您如果申请试用或者正式应用都请通过工单系统提交商务合作类工单进行沟通 https://lbs.amap.com/。 since 9.4.0 Independent route calculation capability API, which can be used in standalone route calculation scenarios without interfering with the current navigation. Special note: This is a paid API. If you wish to apply for a trial or formal use, please submit a business cooperation ticket via the ticket system for communication https://lbs.amap.com/ More...
 
(BOOL) - recalculateWalkRoute
 导航过程中重新规划路径(起点为当前位置,终点位置不变) Re-planning the route during navigation (starting from the current location with the destination unchanged) More...
 
(BOOL) - recalculateWalkRouteWithCallback:
 导航过程中重新规划路径(起点为当前位置,终点位置不变)。since 10.1.111 Re-planning the route during navigation (starting from the current location with the destination unchanged) More...
 
(void) - setTimeForOneWord:
 设置TTS语音播报每播报一个字需要的时间.根据播报一个字的时间和运行的速度,可以更改语音播报的触发时机. Set the time required for TTS voice broadcast to broadcast each word. Based on the time to broadcast a word and the speed of operation, the trigger timing of the voice broadcast can be changed. More...
 
(void) - setTTSPlaying:
 开发者请根据实际情况设置外界此时是否正在进行语音播报. since 7.4.0 Developers, please set whether external voice broadcast is currently ongoing based on the actual situation More...
 
(nullable AMapNaviStatisticsInfo *) - getNaviStatisticsInfo
 获取导航统计信息 Obtain navigation statistics More...
 
- Instance Methods inherited from AMapNaviBaseManager
(BOOL) - playTTS:forcePlay:
 
(void) - setExternalLocation:isAMapCoordinate:
 设置外部传入定位的信息 Set externally transmitted location information More...
 
(void) - setEmulatorNaviSpeed:
 设置模拟导航的速度,默认60 Set the speed of simulated navigation, default is 60 More...
 
(BOOL) - startEmulatorNavi
 开始模拟导航. 注意:必须在路径规划成功的情况下,才能够开始模拟导航 Start simulated navigation. Note: Simulated navigation can only be started after successful route planning. More...
 
(BOOL) - startGPSNavi
 开始实时导航. 注意:必须在路径规划成功的情况下,才能够开始实时导航 Start real-time navigation. Note: Real-time navigation can only be started when the route planning is successful More...
 
(BOOL) - startEmulatorNavi:
 开始模拟导航. 注意:必须传入导航的路线组合routeGroup,才能够开始模拟导航. since 7.7.0 Start simulated navigation. Note: The routeGroup for navigation must be passed in to start simulated navigation. since 7.7.0 More...
 
(BOOL) - startGPSNavi:
 开始实时导航. 注意:必须传入导航的路线组合routeGroup,才能够开始实时导航. since 7.7.0 Start real-time navigation. Note: The routeGroup of the navigation must be passed in to start real-time navigation. since 7.7.0 More...
 
(void) - stopNavi
 停止导航,包含实时导航和模拟导航 Stop navigation, including real-time navigation and simulated navigation More...
 
(void) - pauseNavi
 暂停导航,包含实时导航和模拟导航 Pause navigation, including real-time navigation and simulated navigation More...
 
(void) - resumeNavi
 继续导航,包含实时导航和模拟导航 Resume navigation, including real-time navigation and simulated navigation More...
 
(BOOL) - readNaviInfoManual
 实时导航中手动触发一次信息播报. 注意:该接口仅支持驾车和步行,骑行不支持此功能. Manually trigger an information broadcast during real-time navigation. Note: This interface only supports driving and walking, cycling does not support this function. More...
 
(nullable NSArray< AMapNaviGuide * > *) - getNaviGuideList
 获取导航路线的路线详情列表 Get the route details list of the navigation route More...
 

Class Methods

(AMapNaviWalkManager *) + sharedInstance
 AMapNaviWalkManager单例。注意:如果已经获取了AMapNaviDriveManager单例,需要调用destroyInstance方法销毁单例,再获取步行导航单例。since 10.1.200。 AMapNaviWalkManager singleton. Note: If you have already obtained the AMapNaviDriveManager singleton, you need to call the destroyInstance method to destroy the singleton before obtaining the walking navigation singleton. More...
 
(BOOL) + destroyInstance
 销毁AMapNaviWalkManager单例. since 7.4.0 Destroy AMapNaviWalkManager singleton More...
 
- Class Methods inherited from AMapNaviBaseManager
(void) + setAppLang:authCallback:
 设置app语言类型和语音包路径,要确保AMapNaviDriveManager单例创建前设置。since 11.0.030 * Set the app language type and voice package path, ensure it is set before the singleton creation of AMapNaviDriveManager More...
 

Properties

id< AMapNaviWalkManagerDelegatedelegate
 
NSInteger naviRouteID
 
AMapNaviRoutenaviRoute
 
BOOL isRecalculateRouteForYaw
 
AMapNaviGPSSignalStrength gpsSignalStrength
 
- Properties inherited from AMapNaviBaseManager
AMapNaviMode naviMode
 
BOOL screenAlwaysBright
 
BOOL pausesLocationUpdatesAutomatically
 
BOOL allowsBackgroundLocationUpdates
 
BOOL enableExternalLocation
 
CLLocation * externalLocation
 
BOOL isUseInternalTTS
 
BOOL isUseTextPlay
 

Detailed Description

步行导航管理类 Pedestrian Navigation Management Category

Method Documentation

◆ addDataRepresentative:

- (void) addDataRepresentative: (id< AMapNaviWalkDataRepresentable >)  aRepresentative

增加用于展示导航数据的DataRepresentative.注意:该方法不会增加实例对象的引用计数(Weak Reference) Add the DataRepresentative used to display navigation data. Note: This method will not increase the reference count of the instance object (Weak Reference)

Parameters
aRepresentative实现了 AMapNaviWalkDataRepresentable 协议的实例 An instance that implements the AMapNaviWalkDataRepresentable protocol

◆ addEventListener:

- (void) addEventListener: (id< AMapNaviWalkManagerDelegate >)  aListener

增加用于接收导航回调事件的Listener, 效果等同于delegate. 注意:该方法不会增加实例对象的引用计数(Weak Reference). since 8.0.1 Add a Listener to receive navigation callback events, which is equivalent to a delegate. Note: This method does not increase the reference count of the instance object (Weak Reference)

Parameters
aListener实现了 AMapNaviRideManagerDelegate 协议的实例 An instance that implements the AMapNaviRideManagerDelegate protocol

◆ calculateWalkRouteWithEndPoints:

- (BOOL) calculateWalkRouteWithEndPoints: (NSArray< AMapNaviPoint * > *)  endPoints

不带起点的步行路径规划 Walking route planning without starting point

Parameters
endPoints终点坐标.支持多个终点,终点列表的尾点为实时导航终点,其他坐标点为辅助信息,带有方向性,可有效避免算路到马路的另一侧. Destination coordinates. Supports multiple destinations, where the last point in the destination list is the real-time navigation endpoint, and other coordinate points serve as auxiliary information with directionality, effectively avoiding route calculation to the opposite side of the road.
Returns
规划路径所需条件和参数校验是否成功,不代表算路成功与否 Whether the conditions and parameters required for route planning are successfully verified does not indicate whether the route calculation is successful

◆ calculateWalkRouteWithStartPOIInfo:endPOIInfo:strategy:

- (BOOL) calculateWalkRouteWithStartPOIInfo: (nullable AMapNaviPOIInfo *)  startPOIInfo
endPOIInfo: (nonnull AMapNaviPOIInfo *)  endPOIInfo
strategy: (AMapNaviTravelStrategy strategy 

根据高德POIInfo进行步行路径规划. since 7.5.0 Plan the walking route based on Amap POIInfo

Parameters
startPOIInfo起点POIInfo, 参考 AMapNaviPOIInfo. 如果以“我的位置”作为起点,请传nil. 如果startPOIInfo不为nil,那么POIID合法,优先使用ID参与算路,否则使用坐标点 Starting point POIInfo, refer to AMapNaviPOIInfo. If 'My Location' is used as the starting point, please pass nil. If startPOIInfo is not nil, then the POIID is valid, and the ID is used for route calculation first; otherwise, the coordinate point is used
endPOIInfo终点POIInfo, 参考 AMapNaviPOIInfo. 如果POIID合法,优先使用ID参与算路,否则使用坐标点. 注意:POIID和坐标点不能同时为空 Destination POIInfo, refer to AMapNaviPOIInfo. If the POIID is valid, prioritize using the ID for route calculation; otherwise, use the coordinate point. Note: POIID and coordinate point cannot be empty simultaneously.
strategy路径的计算策略,参考 AMapNaviTravelStrategy. Route calculation strategy, refer to AMapNaviTravelStrategy
Returns
规划路径所需条件和参数校验是否成功,不代表算路成功与否 Whether the conditions and parameters required for route planning are successfully verified does not indicate whether the route calculation is successful

◆ calculateWalkRouteWithStartPOIInfo:endPOIInfo:wayPOIInfos:strategy:

- (BOOL) calculateWalkRouteWithStartPOIInfo: (nullable AMapNaviPOIInfo *)  startPOIInfo
endPOIInfo: (nonnull AMapNaviPOIInfo *)  endPOIInfo
wayPOIInfos: (nullable NSArray< AMapNaviPOIInfo * > *)  wayPOIInfos
strategy: (AMapNaviTravelStrategy strategy 

POI算路。since 9.3.5 POI routing.

Parameters
startPOIInfo起点POIInfo,如果以“我的位置”作为起点,请传nil。如果startPOIInfo不为nil,那么POIID合法,优先使用ID参与算路,否则使用坐标点。 Starting point POIInfo, If 'My Location' is used as the starting point, please pass nil. If startPOIInfo is not nil, then the POIID is valid, and the ID is used for route calculation first; otherwise, the coordinate point is used
endPOIInfo终点POIInfo,如果POIID合法,优先使用ID参与算路,否则使用坐标点。注意:POIID和坐标点不能同时为空。 Destination POIInfo, If the POIID is valid, prioritize using the ID for route calculation; otherwise, use the coordinate point. Note: POIID and coordinate point cannot be empty simultaneously.
wayPOIInfos途经点POIInfo,最多支持16个途经点,超过16个会取前16个。如果POIID合法,优先使用ID参与算路,否则使用坐标点。注意:POIID和坐标点不能同时为空。 Waypoint POIInfo, supports up to 16 waypoints, exceeding 16 will take the first 16. If the POIID is valid, prioritize using the ID for route calculation; otherwise, use the coordinate point. Note: POIID and coordinate point cannot be empty simultaneously.
strategy路径的计算策略。 Route calculation strategy
Returns
规划路径所需条件和参数校验是否成功,不代表算路成功与否 Whether the conditions and parameters required for route planning are successfully verified does not indicate whether the route calculation is successful

◆ calculateWalkRouteWithStartPOIInfo:endPOIInfo:wayPOIInfos:strategy:callback:

- (BOOL) calculateWalkRouteWithStartPOIInfo: (nullable AMapNaviPOIInfo *)  startPOIInfo
endPOIInfo: (nonnull AMapNaviPOIInfo *)  endPOIInfo
wayPOIInfos: (nullable NSArray< AMapNaviPOIInfo * > *)  wayPOIInfos
strategy: (AMapNaviTravelStrategy strategy
callback: (nullable void(^)(AMapNaviCalculateRouteResult *_Nullable routeResult))  callback 

POI算路。since 10.1.111 POI routing.

Parameters
startPOIInfo起点POIInfo,如果以“我的位置”作为起点,请传nil。如果startPOIInfo不为nil,那么POIID合法,优先使用ID参与算路,否则使用坐标点。 Starting point POIInfo, If 'My Location' is used as the starting point, please pass nil. If startPOIInfo is not nil, then the POIID is valid, and the ID is used for route calculation first; otherwise, the coordinate point is used
endPOIInfo终点POIInfo,如果POIID合法,优先使用ID参与算路,否则使用坐标点。注意:POIID和坐标点不能同时为空。 Destination POIInfo, If the POIID is valid, prioritize using the ID for route calculation; otherwise, use the coordinate point. Note: POIID and coordinate point cannot be empty simultaneously.
wayPOIInfos途经点POIInfo,最多支持16个途经点,超过16个会取前16个。如果POIID合法,优先使用ID参与算路,否则使用坐标点。注意:POIID和坐标点不能同时为空。 Waypoint POIInfo, supports up to 16 waypoints, exceeding 16 will take the first 16. If the POIID is valid, prioritize using the ID for route calculation; otherwise, use the coordinate point. Note: POIID and coordinate point cannot be empty simultaneously.
strategy路径的计算策略。 Route calculation strategy
callback算路结果回调。一次算路,routeResult 中的 routeRequestId 与 算路成功、算路失败接口中返回的 routeRequestId 一致。 Route calculation result callback. For a single route calculation, the routeRequestId in the routeResult is consistent with the routeRequestId returned by the route success and route failure interfaces.
Returns
规划路径所需条件和参数校验是否成功,不代表算路成功与否 Whether the conditions and parameters required for route planning are successfully verified does not indicate whether the route calculation is successful

◆ calculateWalkRouteWithStartPoints:endPoints:

- (BOOL) calculateWalkRouteWithStartPoints: (NSArray< AMapNaviPoint * > *)  startPoints
endPoints: (NSArray< AMapNaviPoint * > *)  endPoints 

带起点的步行路径规划 Walking route planning with starting point

Parameters
startPoints起点坐标.支持多个起点,起点列表的尾点为实时导航起点,其他坐标点为辅助信息,带有方向性,可有效避免算路到马路的另一侧. Starting point coordinates. Supports multiple starting points, the last point in the starting point list is the real-time navigation starting point, other coordinates are auxiliary information, with directionality, which can effectively avoid calculating the route to the other side of the road.
endPoints终点坐标.支持多个终点,终点列表的尾点为实时导航终点,其他坐标点为辅助信息,带有方向性,可有效避免算路到马路的另一侧. Destination coordinates. Supports multiple destinations, where the last point in the destination list is the real-time navigation endpoint, and other coordinate points serve as auxiliary information with directionality, effectively avoiding route calculation to the opposite side of the road.
Returns
规划路径所需条件和参数校验是否成功,不代表算路成功与否 Whether the conditions and parameters required for route planning are successfully verified does not indicate whether the route calculation is successful

◆ destroyInstance

+ (BOOL) destroyInstance

销毁AMapNaviWalkManager单例. since 7.4.0 Destroy AMapNaviWalkManager singleton

Returns
是否销毁成功. 如果返回NO,请检查单例是否被强引用 Whether the destruction was successful. If NO is returned, please check if the singleton is strongly referenced

◆ getNaviStatisticsInfo

- (nullable AMapNaviStatisticsInfo *) getNaviStatisticsInfo

获取导航统计信息 Obtain navigation statistics

Returns
导航统计信息,参考 AMapNaviStatisticsInfo 类. Navigation statistics information, refer to AMapNaviStatisticsInfo class

◆ independentCalculateWalkRouteWithStartPOIInfo:endPOIInfo:strategy:callback:

- (BOOL) independentCalculateWalkRouteWithStartPOIInfo: (nullable AMapNaviPOIInfo *)  startPOIInfo
endPOIInfo: (nonnull AMapNaviPOIInfo *)  endPOIInfo
strategy: (AMapNaviTravelStrategy strategy
callback: (nullable void(^)(AMapNaviRouteGroup *_Nullable routeGroup, NSError *_Nullable error))  callback 

独立算路能力接口,可用于不干扰本次导航的单独算路场景. since 7.8.0 Independent routing capability interface, which can be used for standalone routing scenarios without interfering with the current navigation

Parameters
startPOIInfo起点POIInfo, 参考 AMapNaviPOIInfo. 如果以“我的位置”作为起点,请传nil. 如果startPOIInfo不为nil,那么POIID合法,优先使用ID参与算路,否则使用坐标点 Starting point POIInfo, refer to AMapNaviPOIInfo. If 'My Location' is used as the starting point, please pass nil. If startPOIInfo is not nil, then the POIID is valid, and the ID is used for route calculation first; otherwise, the coordinate point is used
endPOIInfo终点POIInfo, 参考 AMapNaviPOIInfo. 如果POIID合法,优先使用ID参与算路,否则使用坐标点. 注意:POIID和坐标点不能同时为空 Destination POIInfo, refer to AMapNaviPOIInfo. If the POIID is valid, prioritize using the ID for route calculation; otherwise, use the coordinate point. Note: POIID and coordinate point cannot be empty simultaneously.
strategy路径的计算策略,参考 AMapNaviTravelStrategy. Route calculation strategy, refer to AMapNaviTravelStrategy
callback算路完成的回调. 算路成功时,routeGroup 不为空;算路失败时,error 不为空,error.code参照 AMapNaviCalcRouteState. Callback for route calculation completion. When the route calculation is successful, routeGroup is not empty; when it fails, error is not empty, and error.code refers to AMapNaviCalcRouteState.
Returns
规划路径所需条件和参数校验是否成功,不代表算路成功与否 Whether the conditions and parameters required for route planning are successfully verified does not indicate whether the route calculation is successful

◆ independentCalculateWalkRouteWithStartPOIInfo:endPOIInfo:wayPOIInfos:strategy:callback:

- (BOOL) independentCalculateWalkRouteWithStartPOIInfo: (nullable AMapNaviPOIInfo *)  startPOIInfo
endPOIInfo: (nonnull AMapNaviPOIInfo *)  endPOIInfo
wayPOIInfos: (nullable NSArray< AMapNaviPOIInfo * > *)  wayPOIInfos
strategy: (AMapNaviTravelStrategy strategy
callback: (nullable void(^)(AMapNaviRouteGroup *_Nullable routeGroup, NSError *_Nullable error))  callback 

独立算路能力接口,可用于不干扰本次导航的单独算路场景。特别注意:当前接口为收费接口,您如果申请试用或者正式应用都请通过工单系统提交商务合作类工单进行沟通 https://lbs.amap.com/。 since 9.4.0 Independent route calculation capability API, which can be used in standalone route calculation scenarios without interfering with the current navigation. Special note: This is a paid API. If you wish to apply for a trial or formal use, please submit a business cooperation ticket via the ticket system for communication https://lbs.amap.com/

Parameters
startPOIInfo起点POIInfo,如果以“我的位置”作为起点,请传nil。如果startPOIInfo不为nil,那么POIID合法,优先使用ID参与算路,否则使用坐标点。 Starting point POIInfo, If 'My Location' is used as the starting point, please pass nil. If startPOIInfo is not nil, then the POIID is valid, and the ID is used for route calculation first; otherwise, the coordinate point is used
endPOIInfo终点POIInfo,如果POIID合法,优先使用ID参与算路,否则使用坐标点。注意:POIID和坐标点不能同时为空。 Destination POIInfo, If the POIID is valid, prioritize using the ID for route calculation; otherwise, use the coordinate point. Note: POIID and coordinate point cannot be empty simultaneously.
wayPOIInfos途经点POIInfo,最多支持16个途经点,超过16个会取前16个。如果POIID合法,优先使用ID参与算路,否则使用坐标点。注意:POIID和坐标点不能同时为空。 Waypoint POIInfo, supports up to 16 waypoints, exceeding 16 will take the first 16. If the POIID is valid, prioritize using the ID for route calculation; otherwise, use the coordinate point. Note: POIID and coordinate point cannot be empty simultaneously.
strategy路径的计算策略。 Route calculation strategy
callback算路完成的回调。算路成功时,routeGroup 不为空;算路失败时,error 不为空,error.code参照 AMapNaviCalcRouteState。 Callback for route calculation completion. When the route calculation is successful, routeGroup is not empty; when it fails, error is not empty, and error.code refers to AMapNaviCalcRouteState.
Returns
规划路径所需条件和参数校验是否成功,不代表算路成功与否。 Whether the conditions and parameters required for route planning are successfully verified does not indicate whether the route calculation is successful

◆ init

- (instancetype) init

请使用单例替代. since 7.4.0 init已被禁止使用,请使用单例 [AMapNaviWalkManager sharedInstance] 替代 Please use singleton instead. Since 7.4.0, init has been deprecated, please use the singleton [AMapNaviWalkManager sharedInstance] instead.

◆ naviRouteIDs

- (NSArray<NSNumber *> *) naviRouteIDs

多路径规划时的所有路径ID,路径ID为 NSInteger 类型 since 7.5.0 All path IDs during multi-path planning, where path IDs are of type NSInteger

Returns
返回多路径规划时的所有路径ID Returns all path IDs during multi-path planning

◆ naviRoutes

- (NSDictionary<NSNumber *,AMapNaviRoute *> *) naviRoutes

多路径规划时的所有路径信息 since 7.5.0 All path information during multi-path planning

Returns
返回多路径规划时的所有路径ID和路线信息 Returns all path IDs and route information during multi-path planning

◆ recalculateWalkRoute

- (BOOL) recalculateWalkRoute

导航过程中重新规划路径(起点为当前位置,终点位置不变) Re-planning the route during navigation (starting from the current location with the destination unchanged)

Returns
重新规划路径所需条件和参数校验是否成功, 不代表算路成功与否,如非导航状态下调用此方法会返回NO. The success of the conditions and parameter validation required for re-planning the route does not indicate whether the route calculation is successful. Calling this method outside of navigation will return NO.

◆ recalculateWalkRouteWithCallback:

- (BOOL) recalculateWalkRouteWithCallback: (nullable void(^)(AMapNaviCalculateRouteResult *_Nullable routeResult))  callback

导航过程中重新规划路径(起点为当前位置,终点位置不变)。since 10.1.111 Re-planning the route during navigation (starting from the current location with the destination unchanged)

Parameters
callback算路结果回调。一次算路,routeResult 中的 routeRequestId 与 算路成功、算路失败接口中返回的 routeRequestId 一致 Route calculation result callback. For a single route calculation, the routeRequestId in the routeResult is consistent with the routeRequestId returned by the route success and route failure interfaces.
Returns
重新规划路径所需条件和参数校验是否成功, 不代表算路成功与否,如非导航状态下调用此方法会返回NO. The success of the conditions and parameter validation required for re-planning the route does not indicate whether the route calculation is successful. Calling this method outside of navigation will return NO.

◆ removeDataRepresentative:

- (void) removeDataRepresentative: (id< AMapNaviWalkDataRepresentable >)  aRepresentative

移除用于展示导航数据的DataRepresentative Remove the DataRepresentative used to display navigation data

Parameters
aRepresentative实现了 AMapNaviWalkDataRepresentable 协议的实例 An instance that implements the AMapNaviWalkDataRepresentable protocol

◆ removeEventListener:

- (void) removeEventListener: (id< AMapNaviWalkManagerDelegate >)  aListener

移除用于接收导航回调事件的Listener. since 8.0.1 Remove the Listener used to receive navigation callback events

Parameters
aListener实现了 AMapNaviRideManagerDelegate 协议的实例 An instance that implements the AMapNaviRideManagerDelegate protocol

◆ selectNaviRouteWithRouteID:

- (BOOL) selectNaviRouteWithRouteID: (NSInteger)  routeID

多路径规划时选择路径.注意:该方法仅限于在开始导航前使用,开始导航后该方法无效 since 7.5.0 Select route during multi-path planning.Note: This method can only be used before starting navigation and becomes invalid after navigation begins

Parameters
routeID路径ID Route ID
Returns
是否选择路径成功 Whether route selection is successful

◆ setTimeForOneWord:

- (void) setTimeForOneWord: (int)  time

设置TTS语音播报每播报一个字需要的时间.根据播报一个字的时间和运行的速度,可以更改语音播报的触发时机. Set the time required for TTS voice broadcast to broadcast each word. Based on the time to broadcast a word and the speed of operation, the trigger timing of the voice broadcast can be changed.

Parameters
time每个字的播放时间(范围:[250,500]; 单位:毫秒) The playback time of each character (range: [250,500]; unit: milliseconds)

◆ setTTSPlaying:

- (void) setTTSPlaying: (BOOL)  playing

开发者请根据实际情况设置外界此时是否正在进行语音播报. since 7.4.0 Developers, please set whether external voice broadcast is currently ongoing based on the actual situation

Parameters
playing如果外界正在播报语音,传入YES,否则传入NO. If external voice broadcast is ongoing, pass YES, otherwise pass NO

◆ sharedInstance

+ (AMapNaviWalkManager *) sharedInstance

AMapNaviWalkManager单例。注意:如果已经获取了AMapNaviDriveManager单例,需要调用destroyInstance方法销毁单例,再获取步行导航单例。since 10.1.200。 AMapNaviWalkManager singleton. Note: If you have already obtained the AMapNaviDriveManager singleton, you need to call the destroyInstance method to destroy the singleton before obtaining the walking navigation singleton.

Returns
AMapNaviWalkManager实例 AMapNaviWalkManager instance

Property Documentation

◆ delegate

- (id<AMapNaviWalkManagerDelegate>) delegate
readwritenonatomicweak

实现了 AMapNaviWalkManagerDelegate 协议的类指针 Class pointer implementing the AMapNaviWalkManagerDelegate protocol

◆ gpsSignalStrength

- (AMapNaviGPSSignalStrength) gpsSignalStrength
readnonatomicassign

卫星定位信号强度类型,参考 AMapNaviGPSSignalStrength since 7.8.0 只有导航中获取卫星定位信号强弱的值有效 Satellite positioning signal strength type, refer to AMapNaviGPSSignalStrength, since 7.8.0 only the value obtained during navigation is valid

◆ isRecalculateRouteForYaw

- (BOOL) isRecalculateRouteForYaw
readwritenonatomicassign

偏航时是否重新计算路径,默认YES(需要联网). Whether to recalculate route when deviating, default is YES (requires internet connection).

◆ naviRoute

- (AMapNaviRoute*) naviRoute
readnonatomicassign

当前导航路径的信息,参考 AMapNaviRoute 类. The information of the current navigation path, refer to the AMapNaviRoute class

◆ naviRouteID

- (NSInteger) naviRouteID
readnonatomicassign

当前导航路径的ID The ID of the current navigation path


The documentation for this class was generated from the following file:
© 2017 高德信息技术有限公司 版权所有,保留所有权利。