geomag 0.2.1 copy "geomag: ^0.2.1" to clipboard
geomag: ^0.2.1 copied to clipboard

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

example/geomag_example.dart

import 'package:geomag/geomag.dart';

// See also the Flutter example: ...geomag/example/flutter

void main(List<String> args) {
  final geomag = GeoMag();
  final result = geomag.calculate(double.parse(args[0]), double.parse(args[1]),
      double.parse(args.length > 2 ? args[2] : '0'));
  print('Result: $result');
  print('Declination: ${result.dec}');
}
13
likes
120
pub points
67%
popularity

Publisher

verified publisherdefylogic.dev

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

intl, meta

More

Packages that depend on geomag