|
高德地图SDK(导航)
V11.1.000
|
#import <AMapNaviDriveManager.h>
Instance Methods | |
| (void) | - driveManager:error: |
| 发生错误时,会调用代理的此方法 When an error occurs, this method of the delegate will be called More... | |
| (void) | - driveManagerOnCalculateRouteSuccess: |
| 驾车路径规划成功后的回调函数,请尽量使用 -driveManager:onCalculateRouteSuccessWithType: 替代此方法 Callback function after successful driving route planning, please try to use -driveManager:onCalculateRouteSuccessWithType: instead of this method More... | |
| (void) | - driveManager:onCalculateRouteSuccessWithType: |
| 驾车路径规划成功后的回调函数 since 6.1.0 Callback function after successful driving route planning More... | |
| (void) | - driveManager:onCalculateRouteSuccessWithType:calculateRouteResult: |
| 驾车路径规划成功后的回调函数 since 10.1.111 Callback function after successful driving route planning More... | |
| (void) | - driveManager:onCalculateRouteFailure: |
| 驾车路径规划失败后的回调函数. 从5.3.0版本起,算路失败后导航SDK只对外通知算路失败,SDK内部不再执行停止导航的相关逻辑.因此,当算路失败后,不会收到 driveManager:updateNaviMode: 回调; AMapNaviDriveManager.naviMode 不会切换到 AMapNaviModeNone 状态, 而是会保持在 AMapNaviModeGPS or AMapNaviModeEmulator 状态. Callback function after driving route planning fails. Starting from version 5.3.0, when route calculation fails, the navigation SDK only notifies the failure externally and no longer executes the related logic to stop navigation internally. Therefore, when route calculation fails, the driveManager:updateNaviMode: callback will not be received; AMapNaviDriveManager.naviMode will not switch to AMapNaviModeNone state, but will remain in AMapNaviModeGPS or AMapNaviModeEmulator state. More... | |
| (void) | - driveManager:onCalculateRouteFailure:routePlanType: |
| 驾车路径规划失败后的回调函数. since 6.1.0 Callback function after driving route planning fails More... | |
| (void) | - driveManager:onCalculateRouteFailure:routePlanType:calculateRouteResult: |
| 驾车路径规划失败后的回调函数. since 10.1.111 Callback function after driving route planning fails More... | |
| (void) | - driveManager:didStartNavi: |
| 启动导航后回调函数 Callback function after navigation starts More... | |
| (void) | - driveManagerNeedRecalculateRouteForYaw: |
| 出现偏航需要重新计算路径时的回调函数.偏航后 SDK 内部将自动重新路径规划,该方法将在自动重新路径规划前通知您进行额外的处理,您无需自行算路. Callback function when route recalculation is needed due to deviation. After deviation, the SDK will automatically replan the route internally. This method will notify you for additional processing before automatic rerouting, so you don't need to calculate the route yourself. More... | |
| (void) | - driveManagerNeedRecalculateRouteForTrafficJam: |
| 前方遇到拥堵需要重新计算路径时的回调函数.拥堵后 SDK 将自动重新路径规划,该方法将在自动重新路径规划前通知您进行额外的处理,您无需自行算路. The callback function when encountering congestion ahead and needing to recalculate the route. After congestion, the SDK will automatically recalculate the route. This method will notify you for additional processing before the automatic route recalculation, and you do not need to calculate the route yourself. More... | |
| (void) | - driveManager:onArrivedWayPoint: |
| 导航到达某个途经点的回调函数 Callback function when navigation reaches a waypoint More... | |
| (BOOL) | - driveManagerIsNaviSoundPlaying: |
| 开发者请根据实际情况返回是否正在播报语音,如果正在播报语音,请返回YES, 如果没有在播报语音,请返回NO Developers, please return whether voice is currently being broadcast based on the actual situation. If voice is being broadcast, please return YES. If no voice is being broadcast, please return NO More... | |
| (void) | - driveManager:playNaviSoundString:soundStringType: |
| 导航播报信息回调函数,此回调函数需要和driveManagerIsNaviSoundPlaying:配合使用 Navigation broadcast information callback function, this callback function needs to be used in conjunction with driveManagerIsNaviSoundPlaying: More... | |
| (void) | - driveManagerDidEndEmulatorNavi: |
| 模拟导航到达目的地后的回调函数 Callback function after simulated navigation reaches the destination More... | |
| (void) | - driveManagerOnArrivedDestination: |
| 实时导航到达目的地后的回调函数 Callback function after real-time navigation reaches the destination More... | |
| (void) | - driveManager:onNaviPlayRing: |
| 导航(巡航)过程中播放提示音的回调函数. since 5.4.0 Callback function for playing prompts during navigation (cruising) More... | |
| (void) | - driveManager:updateGPSSignalStrength: |
| 卫星定位信号强弱回调函数. since 5.5.0 Callback function for satellite positioning signal strength More... | |
| (void) | - driveManager:postRouteNotification: |
| 实时导航中关于路线的‘信息通知’回调. since 6.2.0 'Information notification' callback regarding the route in real-time navigation More... | |
| (void) | - driveManager:onSuggestChangeMainNaviRoute: |
| 多路线实时导航模式下,建议将某备选路线切换为主导航路线的回调函数. since 6.3.0 Callback function suggesting switching an alternative route to the main navigation route in multi-route real-time navigation mode More... | |
| (void) | - driveManager:onUpdateDriveComfort: |
| 驾车导航道路舒适度回调。特别注意:当前接口为收费接口,您如果申请试用或者正式应用都请通过工单系统提交商务合作类工单进行沟通 https://lbs.amap.com/ since 9.3.5 Driving navigation road comfort callback. Special note: This is a paid API. If you wish to apply for a trial or official use, please submit a business cooperation ticket via the ticket system for communication https://lbs.amap.com/ More... | |
| (void) | - driveManager:onUpdateDriveEvent: |
| 驾车导航三急(急加速/急减速/急转弯)事件回调。特别注意:当前接口为收费接口,您如果申请试用或者正式应用都请通过工单系统提交商务合作类工单进行沟通 https://lbs.amap.com/ since 9.3.5 Driving navigation three emergency (rapid acceleration/rapid deceleration/rapid turning) event callback. Special note: The current interface is a paid interface. If you apply for a trial or formal application, please submit a business cooperation work order through the work order system for communication. https://lbs. amap. com/since 9.3.5 More... | |
| (void) | - driveManager:onUpdateNaviSpeedLimitSection: |
| 路段限速值,进入新的路段后,会回调当前路段的限速值,进入没有限速的路段时,限速值回调为0。since 9.6.0 The speed limit value of the road section. After entering a new road section, the speed limit value of the current road section will be called back. When entering a road section without a speed limit, the speed limit value will be called back to 0. since 9.6.0 More... | |
| (void) | - driveManager:onStartPlayPCMData: |
| 开始播放PCM数据回调函数 Callback function when starting to play PCM data More... | |
| (void) | - driveManager:onPlayPCMData: |
| 播放PCM数据回调函数 Callback function when playing PCM data More... | |
| (void) | - driveManager:onPCMDataFinished: |
| PCM数据播放完成回调函数 Callback function when PCM data playback is finished. More... | |
|
optional |
启动导航后回调函数 Callback function after navigation starts
| naviMode | 导航类型,参考 AMapNaviMode . Navigation type, refer to AMapNaviMode |
| driveManager | 驾车导航管理类 Driving navigation management class |
|
optional |
发生错误时,会调用代理的此方法 When an error occurs, this method of the delegate will be called
| driveManager | 驾车导航管理类 Driving navigation management class |
| error | 错误信息 Error message |
|
optional |
导航到达某个途经点的回调函数 Callback function when navigation reaches a waypoint
| driveManager | 驾车导航管理类 Driving navigation management class |
| wayPointIndex | 到达的途径点的索引值,表示的是 AMapNaviRoute.wayPointsInfo 的索引. The index value of the reached waypoint, which represents the index of AMapNaviRoute.wayPointsInfo. |
|
optional |
驾车路径规划失败后的回调函数. 从5.3.0版本起,算路失败后导航SDK只对外通知算路失败,SDK内部不再执行停止导航的相关逻辑.因此,当算路失败后,不会收到 driveManager:updateNaviMode: 回调; AMapNaviDriveManager.naviMode 不会切换到 AMapNaviModeNone 状态, 而是会保持在 AMapNaviModeGPS or AMapNaviModeEmulator 状态. Callback function after driving route planning fails. Starting from version 5.3.0, when route calculation fails, the navigation SDK only notifies the failure externally and no longer executes the related logic to stop navigation internally. Therefore, when route calculation fails, the driveManager:updateNaviMode: callback will not be received; AMapNaviDriveManager.naviMode will not switch to AMapNaviModeNone state, but will remain in AMapNaviModeGPS or AMapNaviModeEmulator state.
| driveManager | 驾车导航管理类 Driving navigation management class |
| error | 错误信息,error.code参照 AMapNaviCalcRouteState Error message, error.code reference AMapNaviCalcRouteState |
|
optional |
驾车路径规划失败后的回调函数. since 6.1.0 Callback function after driving route planning fails
| driveManager | 驾车导航管理类 Driving navigation management class |
| error | 错误信息,error.code参照 AMapNaviCalcRouteState Error message, error.code reference AMapNaviCalcRouteState |
| type | 路径规划类型,参考 AMapNaviRoutePlanType Route planning type, refer to AMapNaviRoutePlanType |
|
optional |
驾车路径规划失败后的回调函数. since 10.1.111 Callback function after driving route planning fails
| driveManager | 驾车导航管理类 Driving navigation management class |
| error | 错误信息,error.code参照 AMapNaviCalcRouteState Error message, error.code reference AMapNaviCalcRouteState |
| type | 路径规划类型,参考 AMapNaviRoutePlanType Route planning type, refer to AMapNaviRoutePlanType |
| calculateRouteResult | calculateRouteResult 算路结果,算路唯一标识在此对象中。 Routing result, the unique identifier of the routing is in this object |
|
optional |
驾车路径规划成功后的回调函数 since 6.1.0 Callback function after successful driving route planning
| driveManager | 驾车导航管理类 Driving navigation management class |
| type | 路径规划类型,参考 AMapNaviRoutePlanType Route planning type, refer to AMapNaviRoutePlanType |
|
optional |
驾车路径规划成功后的回调函数 since 10.1.111 Callback function after successful driving route planning
| driveManager | 驾车导航管理类 Driving navigation management class |
| type | 路径规划类型,参考 AMapNaviRoutePlanType Route planning type, refer to AMapNaviRoutePlanType |
| calculateRouteResult | 算路结果,算路唯一标识在此对象中。 Route calculation result, the unique identifier of the route calculation is in this object |
|
optional |
导航(巡航)过程中播放提示音的回调函数. since 5.4.0 Callback function for playing prompts during navigation (cruising)
| driveManager | 驾车导航管理类 Driving navigation management class |
| ringType | 提示音类型,参考 AMapNaviRingType . Prompt tone type, refer to AMapNaviRingType |
|
optional |
PCM数据播放完成回调函数 Callback function when PCM data playback is finished.
| driveManager | 驾车导航管理类 Driving navigation management class |
| playTask | PCM播放任务对象 PCM play task object |
|
optional |
播放PCM数据回调函数 Callback function when playing PCM data
| driveManager | 驾车导航管理类 Driving navigation management class |
| info | PCM数据信息对象 PCM data info object |
|
optional |
开始播放PCM数据回调函数 Callback function when starting to play PCM data
| driveManager | 驾车导航管理类 Driving navigation management class |
| playTask | PCM播放任务对象 PCM play task object |
|
optional |
多路线实时导航模式下,建议将某备选路线切换为主导航路线的回调函数. since 6.3.0 Callback function suggesting switching an alternative route to the main navigation route in multi-route real-time navigation mode
| driveManager | 驾车导航管理类 Driving navigation management class |
| suggestChangeMainNaviRouteInfo | 切换主导航路线的相关信息, 参考 AMapNaviSuggestChangeMainNaviRouteInfo . Information about switching the main navigation route, refer to AMapNaviSuggestChangeMainNaviRouteInfo |
|
optional |
驾车导航道路舒适度回调。特别注意:当前接口为收费接口,您如果申请试用或者正式应用都请通过工单系统提交商务合作类工单进行沟通 https://lbs.amap.com/ since 9.3.5 Driving navigation road comfort callback. Special note: This is a paid API. If you wish to apply for a trial or official use, please submit a business cooperation ticket via the ticket system for communication https://lbs.amap.com/
| manager | 驾车导航管理类 Driving navigation management class |
| driveComfort | 驾车舒适度信息对象 Driving comfort information object |
|
optional |
驾车导航三急(急加速/急减速/急转弯)事件回调。特别注意:当前接口为收费接口,您如果申请试用或者正式应用都请通过工单系统提交商务合作类工单进行沟通 https://lbs.amap.com/ since 9.3.5 Driving navigation three emergency (rapid acceleration/rapid deceleration/rapid turning) event callback. Special note: The current interface is a paid interface. If you apply for a trial or formal application, please submit a business cooperation work order through the work order system for communication. https://lbs. amap. com/since 9.3.5
驾车导航三急(急加速/急减速/急转弯)事件回调。特别注意:当前接口为收费接口,您如果申请试用或者正式应用都请通过工单系统提交商务合作类工单进行沟通 https://lbs.amap.com/ since 9.3.5 Driving navigation three urgent (sudden acceleration/sudden deceleration/sudden turn) event callback. Special note: This is a paid API. If you wish to apply for a trial or official use, please submit a business cooperation ticket via the ticket system for communication https://lbs.amap.com/
| manager | 驾车导航管理类 Driving navigation management class |
| driveEvent | 驾驶事件信息对象 Driving event information object |
|
optional |
路段限速值,进入新的路段后,会回调当前路段的限速值,进入没有限速的路段时,限速值回调为0。since 9.6.0 The speed limit value of the road section. After entering a new road section, the speed limit value of the current road section will be called back. When entering a road section without a speed limit, the speed limit value will be called back to 0. since 9.6.0
路段限速值,进入新的路段后,会回调当前路段的限速值,进入没有限速的路段时,限速值回调为0。since 9.6.0 Road speed limit value. After entering a new road section, the speed limit value of the current section will be called back. When entering a road section without a speed limit, the speed limit value will be called back to 0
| manager | 驾车导航管理类 Driving navigation management class |
| speed | 路段限速值 Road speed limit value |
|
optional |
导航播报信息回调函数,此回调函数需要和driveManagerIsNaviSoundPlaying:配合使用 Navigation broadcast information callback function, this callback function needs to be used in conjunction with driveManagerIsNaviSoundPlaying:
| driveManager | 驾车导航管理类 Driving navigation management class |
| soundString | 播报文字 Broadcast text |
| soundStringType | 播报类型,参考 AMapNaviSoundType. 注意:since 6.0.0 AMapNaviSoundType 只返回 AMapNaviSoundTypeDefault Broadcast type, refer to AMapNaviSoundType. Note: since 6.0.0 AMapNaviSoundType only returns AMapNaviSoundTypeDefault |
|
optional |
实时导航中关于路线的‘信息通知’回调. since 6.2.0 'Information notification' callback regarding the route in real-time navigation
| driveManager | 驾车导航管理类 Driving navigation management class |
| notifyData | 通知信息, 参考 AMapNaviRouteNotifyData . Notification information, refer to AMapNaviRouteNotifyData |
|
optional |
卫星定位信号强弱回调函数. since 5.5.0 Callback function for satellite positioning signal strength
| driveManager | 驾车导航管理类 Driving navigation management class |
| gpsSignalStrength | 卫星定位信号强度类型,参考 AMapNaviGPSSignalStrength . Satellite positioning signal strength type, refer to AMapNaviGPSSignalStrength |
|
optional |
模拟导航到达目的地后的回调函数 Callback function after simulated navigation reaches the destination
| driveManager | 驾车导航管理类 Driving navigation management class |
|
optional |
开发者请根据实际情况返回是否正在播报语音,如果正在播报语音,请返回YES, 如果没有在播报语音,请返回NO Developers, please return whether voice is currently being broadcast based on the actual situation. If voice is being broadcast, please return YES. If no voice is being broadcast, please return NO
| driveManager | 驾车导航管理类 Driving navigation management class |
|
optional |
前方遇到拥堵需要重新计算路径时的回调函数.拥堵后 SDK 将自动重新路径规划,该方法将在自动重新路径规划前通知您进行额外的处理,您无需自行算路. The callback function when encountering congestion ahead and needing to recalculate the route. After congestion, the SDK will automatically recalculate the route. This method will notify you for additional processing before the automatic route recalculation, and you do not need to calculate the route yourself.
| driveManager | 驾车导航管理类 Driving navigation management class |
|
optional |
出现偏航需要重新计算路径时的回调函数.偏航后 SDK 内部将自动重新路径规划,该方法将在自动重新路径规划前通知您进行额外的处理,您无需自行算路. Callback function when route recalculation is needed due to deviation. After deviation, the SDK will automatically replan the route internally. This method will notify you for additional processing before automatic rerouting, so you don't need to calculate the route yourself.
| driveManager | 驾车导航管理类 Driving navigation management class |
|
optional |
实时导航到达目的地后的回调函数 Callback function after real-time navigation reaches the destination
| driveManager | 驾车导航管理类 Driving navigation management class |
|
optional |
驾车路径规划成功后的回调函数,请尽量使用 -driveManager:onCalculateRouteSuccessWithType: 替代此方法 Callback function after successful driving route planning, please try to use -driveManager:onCalculateRouteSuccessWithType: instead of this method
| driveManager | 驾车导航管理类 Driving navigation management class |