GeoCoordinates class
Represents geographical coordinates in 3D space.
- Annotations
Constructors
- GeoCoordinates(double latitude, double longitude)
-
Constructs a GeoCoordinates from the provided latitude and longitude values.
factory
- GeoCoordinates.withAltitude(double latitude, double longitude, double altitude)
-
Constructs a GeoCoordinates from the provided latitude, longitude and altitude values.
factory
Properties
- altitude → double?
-
Optional altitude in meters.
By convention, on iOS devices, altitude is set as meters relative to the
mean sea level.
On Android devices, altitude is set as meters relative to the WGS 84
reference ellipsoid.
final
- hashCode → int
-
The hash code for this object.
no setter
- latitude → double
-
Latitude in degrees.
final
- longitude → double
-
Longitude in degrees.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
distanceTo(
GeoCoordinates point) → double - Computes distance (in meters) along the great circle between two coordinates.
-
interpolate(
GeoCoordinates towardCoords, double factor) → GeoCoordinates - Computes the coordinates of the interpolated location along the great circle between the two coordinates.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool - The equality operator.
Static Methods
-
fromString(
String input) → GeoCoordinates? - Constructs GeoCoordinates from the provided string in specified format.