GeoDistance class final

An equatorial distance on earth's surface.

Implemented types

Constructors

GeoDistance(double radians)
Create a distance from radians
const
GeoDistance.fromDegrees(double degrees)
Create a distance from degrees
GeoDistance.fromKilometers(double kilometers)
Create a distance from kilometers
factory
GeoDistance.fromMeters(double meters)
Create a distance from meters
GeoDistance.fromMiles(double miles)
Create a distance from miles
factory

Properties

degrees double
The distance in degrees
no setter
hashCode int
The hash code for this object.
no setteroverride
kilometers double
The distance in kilometers
no setter
meters double
The distance in meters
no setter
miles double
The distance in miles
no setter
radians double
The distance in radians
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compareTo(GeoDistance other) int
Compares this object to another object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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