geomag 0.1.1

Dart native
Flutter Android iOS

Translate GPS location data to geo-magnetic data such as magnetic declination.

geomag #

Translate GPS location data to geo-magnetic data such as magnetic declination.

The difference between true north and magnetic north is called magnetic declination. It is different everywhere on Earth and even changes over time. Every five years or so, a couple of governing bodies release coefficients data for calculating the magnetic declination at a given lat/lng and time.

[GeoMag] takes data from the World Magnetic Model Coefficients, [WmmCof], to initialize. You can provide your own or use the bundled data, WMM-2015v2 from 09/18/2018. Use [calculate()] to process GPS coordinates into a [GeoMagResult].

Accuracy is roughly within 0.2 degrees of test values.

See http://www.ngdc.noaa.gov/geomag/WMM/DoDWMM.shtml and https://www.ngdc.noaa.gov/geomag/WMM/wmm_rdownload.shtml.

This is a port of the geomagJS package, https://github.com/cmweiss/geomagJS.

Adapted from the geomagc software and World Magnetic Model of the NOAA Satellite and Information Service, National Geophysical Data Center.

screenshot.png

0
likes
90
pub points
53%
popularity

Translate GPS location data to geo-magnetic data such as magnetic declination.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

jifalops@gmail.com

License

MIT (LICENSE)

Dependencies

intl, meta

More

Packages that depend on geomag