flutter_compass
flutter_compass copied to clipboard
True north
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?
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 any interest in taking this on now that a couple months are almost up?
This plugin giving magnetic north not true north should be in bold font on the description home page.
https://github.com/hemanthrajv/flutter_compass/issues/31