Coordinates class

A simple class to represent geographical coordinates.

Constructors

Coordinates(double latitude, double longitude, {double? elevation, double? heading})
const
Coordinates.fromJson(Map<String, dynamic> json)
factory

Properties

elevation → double?
final
hashCode → int
The hash code for this object.
no setterinherited
heading → double?
final
latitude → double
final
longitude → double
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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