The invention discloses a
compass positioning optimization method and
system for a mobile terminal. The method comprises the steps that when positioning of a
compass of the mobile terminal is accurate, acceleration sensor data are read at the moment, and the data serve as
benchmark data for accurate positioning of the
compass; when a magnetic object is close to the mobile terminal, the precision of a magnetic sensor is affected, and acceleration sensor data are read at the moment; the
benchmark data read when the compass positioning is accurate are compared with acceleration sensor data read when the precision of the magnetic sensor is affected; if the two groups of data are approximated to each other, the magnetic sensor produces no response to
magnetic disturbance, and positioning of the compass is kept; if not, the magnetic sensor produces a response to the
magnetic disturbance, and a user is prompted to calibrate the magnetic sensor. The
system comprises a compass precision value detection module, a first data reading module, a second data reading module and a data comparing module. The compass positioning optimization method and
system enable the compass to achieve accurate positioning even when the precision of the magnetic sensor is affected.