It should be noted that a value of the preset threshold may be set to any value greater than or equal to o based on an actual requirement. This is not specifically limited in this application.
With reference to any one of the first aspect and the foregoing possible implementations, in another possible implementation, if it is determined that the difference between the determined location change rate value of the mobile device and the previous location change rate value of the mobile device is less than the preset threshold, the mobile device detects the RSS of the environment signal in the current environment again.
With reference to any one of the first aspect and the foregoing possible implementations, in another possible implementation, after the mobile device adjusts the positioning cycle of the mobile device based on the location change rate value, the recorded environment record information is cleared. In this way, a real-time effect of the recorded environment record information is improved, and positioning cycle adjustment accuracy is ensured.
With reference to any one of the first aspect and the foregoing possible implementations, in another possible implementation, after the mobile device obtains the group of environment record information in the current environment, if a quantity of groups of environment record information obtained by the mobile device is less than N, the mobile device obtains a group of environment record information in the current environment again.