geomag 0.1.0+3 copy "geomag: ^0.1.0+3" to clipboard
geomag: ^0.1.0+3 copied to clipboard

outdated

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

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
0
pub points
70%
popularity

Publisher

verified publisherdefylogic.dev

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

intl, meta

More

Packages that depend on geomag