hemanthrajv / flutter_compass

MIT License
102 stars 188 forks source link

True north #40

Open postacik opened 4 years ago

postacik commented 4 years ago

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?

hemanthrajv commented 4 years ago

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.

lukepighetti commented 4 years ago

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

jbardu commented 2 years ago

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

robcleghorn commented 6 months ago

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