I've been looking into this problem for several years.
I want to orient a Google map based on the compass heading that the phone is pointing.
I've tried using GPS bearing, but that seems to rely on the phone being moving.
I've tried many of the examples posted in the forum on a dozen or so phones. I have also downloaded free apps from Google Play. I've never found anything that seems reliable – except for one app I downloaded, but I don't know how they did it.
I've tried using just the orientation or accelerometer sensor and the newer method of using both the accelerometer sensor and magnetic sensor. The accuracy/reliability I've been able to achieve are less than I would like, even after calibrating the phones.
Is there a newer method for achieving an accurate compass?
Most forum posts I have looked at are several years old – maybe there is a newer Post that I missed?
Thanks,
Barry.
I want to orient a Google map based on the compass heading that the phone is pointing.
I've tried using GPS bearing, but that seems to rely on the phone being moving.
I've tried many of the examples posted in the forum on a dozen or so phones. I have also downloaded free apps from Google Play. I've never found anything that seems reliable – except for one app I downloaded, but I don't know how they did it.
I've tried using just the orientation or accelerometer sensor and the newer method of using both the accelerometer sensor and magnetic sensor. The accuracy/reliability I've been able to achieve are less than I would like, even after calibrating the phones.
Is there a newer method for achieving an accurate compass?
Most forum posts I have looked at are several years old – maybe there is a newer Post that I missed?
Thanks,
Barry.