Coordinates class
A simple class to represent geographical coordinates.
Constructors
- Coordinates.new(double latitude, double longitude, {double? elevation, double? heading})
-
const
-
Coordinates.fromJson(Map<
String, dynamic> json) -
factory
Properties
Methods
-
distanceTo(
Coordinates other) → double - Calculates the distance in meters between two coordinates using the Haversine formula
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited