DF GPS Math

Dart & Flutter Packages by DevCetra.com & contributors.

pub package

Summary

A package that provides some math functions for global (GPS) positions. For a full feature set, please refer to the API reference.

Usage Example

final gpsMath = GPSMath();

// Approx. position for Hobart, Tasmania.
const hobart = (lat: -42.8821, lng: 147.3272, alt: 0.0);

// Approx. position for Pretoria, South Africa.
const pretoria = (lat: -25.7479, lng: 28.2293, alt: 0.0);

// Calculate the distance between Hobart and Pretoria.
final distance = gpsMath.calculateHavershire3DDistance(
pos1: hobart,
pos2: pretoria,
unit: DistanceUnit.KILOMETRES,
radius: CelestialRadius.EARTH,
);

print('Hobart -> Pretoria = ${distance.round()} km');

Installation

Use this package as a dependency by adding it to your pubspec.yaml file (see here).

Contributing and Discussions

This is an open-source project, and contributions are welcome from everyone, regardless of experience level. Contributing to projects is a great way to learn, share knowledge, and showcase your skills to the community. Join the discussions to ask questions, report bugs, suggest features, share ideas, or find out how you can contribute.

Join GitHub Discussions:

💬 https://github.com/robmllze/df_gps_math/discussions/

Join Reddit Discussions:

💬 https://www.reddit.com/r/df_gps_math/

Chief Maintainer:

📧 Email Robert Mollentze at robmllze@gmail.com

License

This project is released under the MIT License. See LICENSE for more information.

Libraries

df_gps_math
A package that provides some math functions for global (GPS) positions.