METHOD FOR OBTAINING MOVEMENT TRACK OF USER AND TERMINAL
DRIVE
March 12, 2025
This application provides a method for obtaining a movement track of a user and a terminal, and relates to the field of communications technologies, to help improve accuracy of obtaining a movement direction of a user by a terminal, and improve accuracy of obtaining a movement track of the user. The method includes: obtaining gravity data of a terminal; determining that the terminal is in a first posture in a first time period; determining a movement direction of a user in the first time period based on the first posture and azimuth data; determining that the terminal is in an unstable state in a second time period adjacent to the first time period; determining a movement direction of the user in the second time period based on the movement direction of the user in the first time period; determining that the terminal is in a stable state in a third time period adjacent to the second time period; determining, by the terminal, a movement direction of the user in the third time period based on the movement direction of the user in the second time period and azimuth data; and determining, by the terminal, a movement track of the user based on the movement directions of the user in all the time periods.
Discussion in the ATmosphere