flutter_compass icon indicating copy to clipboard operation
flutter_compass copied to clipboard

True north

Open postacik opened this issue 4 years ago • 4 comments

Hi, The library gives the magnetic north value.

For iOS, CLHeading has magneticHeading and trueHeading values.

For Android, there is a GeomagneticField class which gives the declination from magnetic north when initialized with the location values.

https://developer.android.com/reference/android/hardware/GeomagneticField#getDeclination()

Can the library be extended with an option to give the true north as the azimuth value?

postacik avatar Aug 23 '20 13:08 postacik

Hi @postacik, I don't think I can implement no time sooner than a month or two.

But feel free to fork and change to offer the proposed feature. I'd be more than happy to accept and release it.

hemanthrajv avatar Aug 24 '20 13:08 hemanthrajv

@hemanthrajv any interest in taking this on now that a couple months are almost up?

lukepighetti avatar Sep 23 '20 22:09 lukepighetti

This plugin giving magnetic north not true north should be in bold font on the description home page.

jbardu avatar Nov 19 '21 23:11 jbardu

https://github.com/hemanthrajv/flutter_compass/issues/31

robcleghorn avatar May 04 '24 20:05 robcleghorn