GeoMag class Null safety
Translate GPS location data to geo-magnetic data such as magnetic declination.
GeoMag takes data from the World Magnetic Model Coefficients, WmmCof, to initialize. You can provide your own or use the bundled data from 2020. Use calculate() to process GPS coordinates into a GeoMagResult.
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.
double lat, double lng, [double heightFeet = 0, DateTime? date]) → GeoMagResult
- Calculate various geomagnetic values based on your latitude, longitude.
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
) → String
A string representation of this object.