GreatCircleDistance class

The great-circle is shortest distance between two points on the surface of a sphere See Great-circle distance

Constructors

GreatCircleDistance.fromDegrees({double? latitude1, double? longitude1, double? latitude2, double? longitude2})
GreatCircleDistance.fromRadians({double? latitude1, double? longitude1, double? latitude2, double? longitude2})

Properties

hashCode int
The hash code for this object.
no setterinherited
latitude1 double?
getter/setter pair
latitude2 double?
getter/setter pair
longitude1 double?
getter/setter pair
longitude2 double?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

haversineDistance() double
Calculate distance using the Haversine formula The haversine formula determines the great-circle distance between two points on a sphere given their longitudes and latitudes See Haversine formula
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sphericalLawOfCosinesDistance() double
Calculate distance using Spherical law of cosines See Spherical law of cosines
toString() String
A string representation of this object.
inherited
vincentyDistance() double
Calculate distance using Vincenty formula Vincenty's formulae are two related iterative methods used in geodesy to calculate the distance between two points on the surface of a spheroid They are based on the assumption that the figure of the Earth is an oblate spheroid, and hence are more accurate than methods that assume a spherical Earth, such as great-circle distance See Vincenty's formulae

Operators

operator ==(Object other) bool
The equality operator.
inherited