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

#import <AMapNaviEleBikeManager.h>

Inheritance diagram for AMapNaviEleBikeManager:
AMapNaviTravelManager AMapNaviBaseManager

Instance Methods

(instancetype) - init
 请使用单例替代. since 8.0.0 init已被禁止使用,请使用单例 [AMapNaviEleBikeManager sharedInstance] 替代 Please use singleton instead. Since 8.0.0, init has been deprecated, please use the singleton [AMapNaviEleBikeManager sharedInstance] instead. 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...
 
(void) - addEventListener:
 增加用于接收导航回调事件的Listener, 效果等同于delegate. 注意:该方法不会增加实例对象的引用计数(Weak Reference). since 9.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 9.0.1 Remove the Listener used to receive navigation callback events More...
 
(NSDictionary< NSNumber *, AMapNaviRoute * > *) - naviRoutes
 多路径规划时的所有路径信息 since 8.0.0 All path information during multi-path planning More...
 
(NSArray< NSNumber * > *) - naviRouteIDs
 多路径规划时的所有路径ID,路径ID为 NSInteger 类型 since 8.0.0 All path IDs during multi-path planning, where path IDs are of type NSInteger More...
 
(BOOL) - selectNaviRouteWithRouteID:
 多路径规划时选择路径.注意:该方法仅限于在开始导航前使用,开始导航后该方法无效 since 8.0.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) - calculateEleBikeRouteWithEndPoint:
 不带起点的电动车骑行路径规划 Electric bike route planning without a starting point More...
 
(BOOL) - calculateEleBikeRouteWithStartPoint:endPoint:
 带起点的电动车骑行路径规划 Electric bike route planning with a starting point More...
 
(BOOL) - calculateEleBikeRouteWithStartPOIInfo:endPOIInfo:strategy:
 根据高德POIInfo进行电动车骑行路径规划. since 8.0.0 Plan electric bike routes based on Amap POIInfo More...
 
(BOOL) - calculateEleBikeRouteWithStartPOIInfo:endPOIInfo:strategy:callback:
 根据高德POIInfo进行电动车骑行路径规划. since 10.1.111 Plan electric bike routes based on Amap POIInfo More...
 
(BOOL) - independentCalculateEleBikeRouteWithStartPOIInfo:endPOIInfo:strategy:callback:
 独立算路能力接口,可用于不干扰本次导航的单独算路场景. since 8.0.0 Independent routing capability interface, which can be used for standalone routing scenarios without interfering with the current navigation More...
 
(BOOL) - recalculateEleBikeRoute
 导航过程中重新规划路径(起点为当前位置,终点位置不变) Re-planning the route during navigation (starting from the current location with the destination unchanged) More...
 
(BOOL) - recalculateEleBikeRouteWithCallback:
 导航过程中重新规划路径(起点为当前位置,终点位置不变)。since 10.1.111 Re-planning the route during navigation (starting from the current location with the destination unchanged) More...
 
(void) - setTTSPlaying:
 开发者请根据实际情况设置外界此时是否正在进行语音播报. since 8.0.0 Developers, please set whether external voice broadcast is currently ongoing based on the actual situation 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

(instancetype) + sharedInstance
 AMapNaviEleBikeManager单例. since 8.0.0 AMapNaviEleBikeManager singleton. More...
 
(BOOL) + destroyInstance
 销毁AMapNaviEleBikeManager单例. since 8.0.0 Destroy AMapNaviEleBikeManager 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< AMapNaviEleBikeManagerDelegatedelegate
 
NSInteger naviRouteID
 
AMapNaviRoutenaviRoute
 
AMapNaviGPSSignalStrength gpsSignalStrength
 
- Properties inherited from AMapNaviBaseManager
AMapNaviMode naviMode
 
BOOL screenAlwaysBright
 
BOOL pausesLocationUpdatesAutomatically
 
BOOL allowsBackgroundLocationUpdates
 
BOOL enableExternalLocation
 
CLLocation * externalLocation
 
BOOL isUseInternalTTS
 
BOOL isUseTextPlay
 

Detailed Description

电动车骑行导航管理类 Electric Vehicle Riding Navigation Management

Method Documentation

◆ addDataRepresentative:

- (void) addDataRepresentative: (id< AMapNaviEleBikeDataRepresentable >)  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实现了 AMapNaviRideDataRepresentable 协议的实例 An instance that implements the AMapNaviRideDataRepresentable protocol

◆ addEventListener:

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

增加用于接收导航回调事件的Listener, 效果等同于delegate. 注意:该方法不会增加实例对象的引用计数(Weak Reference). since 9.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

◆ calculateEleBikeRouteWithEndPoint:

- (BOOL) calculateEleBikeRouteWithEndPoint: (AMapNaviPoint *)  endPoint

不带起点的电动车骑行路径规划 Electric bike route planning without a starting point

Parameters
endPoint终点坐标. Destination coordinates
Returns
规划路径所需条件和参数校验是否成功,不代表算路成功与否 Whether the conditions and parameters required for route planning are successfully verified does not indicate whether the route calculation is successful

◆ calculateEleBikeRouteWithStartPOIInfo:endPOIInfo:strategy:

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

根据高德POIInfo进行电动车骑行路径规划. since 8.0.0 Plan electric bike routes 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

◆ calculateEleBikeRouteWithStartPOIInfo:endPOIInfo:strategy:callback:

- (BOOL) calculateEleBikeRouteWithStartPOIInfo: (nullable AMapNaviPOIInfo *)  startPOIInfo
endPOIInfo: (nonnull AMapNaviPOIInfo *)  endPOIInfo
strategy: (AMapNaviTravelStrategy strategy
callback: (nullable void(^)(AMapNaviCalculateRouteResult *_Nullable routeResult))  callback 

根据高德POIInfo进行电动车骑行路径规划. since 10.1.111 Plan electric bike routes 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
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

◆ calculateEleBikeRouteWithStartPoint:endPoint:

- (BOOL) calculateEleBikeRouteWithStartPoint: (AMapNaviPoint *)  startPoint
endPoint: (AMapNaviPoint *)  endPoint 

带起点的电动车骑行路径规划 Electric bike route planning with a starting point

Parameters
startPoint起点坐标. Starting point coordinates
endPoint终点坐标. Destination coordinates
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

销毁AMapNaviEleBikeManager单例. since 8.0.0 Destroy AMapNaviEleBikeManager singleton

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

◆ independentCalculateEleBikeRouteWithStartPOIInfo:endPOIInfo:strategy:callback:

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

独立算路能力接口,可用于不干扰本次导航的单独算路场景. since 8.0.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

◆ init

- (instancetype) init

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

◆ naviRouteIDs

- (NSArray<NSNumber *> *) naviRouteIDs

多路径规划时的所有路径ID,路径ID为 NSInteger 类型 since 8.0.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 8.0.0 All path information during multi-path planning

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

◆ recalculateEleBikeRoute

- (BOOL) recalculateEleBikeRoute

导航过程中重新规划路径(起点为当前位置,终点位置不变) 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.

◆ recalculateEleBikeRouteWithCallback:

- (BOOL) recalculateEleBikeRouteWithCallback: (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< AMapNaviEleBikeDataRepresentable >)  aRepresentative

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

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

◆ removeEventListener:

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

移除用于接收导航回调事件的Listener. since 9.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 8.0.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

◆ setTTSPlaying:

- (void) setTTSPlaying: (BOOL)  playing

开发者请根据实际情况设置外界此时是否正在进行语音播报. since 8.0.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

+ (instancetype) sharedInstance

AMapNaviEleBikeManager单例. since 8.0.0 AMapNaviEleBikeManager singleton.

Returns
AMapNaviEleBikeManager实例 AMapNaviEleBikeManager instance

Property Documentation

◆ delegate

- (id<AMapNaviEleBikeManagerDelegate>) delegate
readwritenonatomicweak

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

◆ gpsSignalStrength

- (AMapNaviGPSSignalStrength) gpsSignalStrength
readnonatomicassign

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

◆ 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 高德信息技术有限公司 版权所有,保留所有权利。