Network-Assisted Positioning
The Navigation SDK supports network-based navigation starting from version 7.5.0. No additional configuration is required — simply upgrade to the latest SDK version.
Overview
Mobile device positioning can be categorized into three types: satellite positioning, network positioning, and cell tower positioning, with accuracy decreasing in that order. Navigation relies heavily on precise positioning, but some environments may not receive high-accuracy satellite signals — for example, near tall buildings in urban areas or under elevated roads. In such cases, network positioning signals can assist navigation.
Network-based navigation serves as a fallback mechanism. It enables users in areas with weak positioning signals to still experience relatively accurate navigation. Using the callback described below, you can determine whether the current location is using network-based navigation and provide appropriate feedback to the user.
Callback
The following callback provides information about the current vehicle location and whether it is using network-based navigation.
AMapNaviLocation Class
Location Update Callback
/**
* @brief Callback for vehicle location updates (since 5.0.0).
* This callback is triggered for both simulated and real-time navigation.
* @param driveManager The driving navigation manager instance.
* @param naviLocation The current vehicle location information. See AMapNaviLocation class.
*/
- (void)driveManager:(AMapNaviDriveManager *)driveManager updateNaviLocation:(nullable AMapNaviLocation *)naviLocation;Usage Notes
- The isNetworkNavi property indicates whether the current location is a network point used for navigation.
- This property is only relevant for driving navigation.
- Use this callback to inform users when the navigation is relying on network-based positioning.