LatLong class

This immutable class represents a geographic coordinate with a latitude and longitude value.

Implemented types

Constructors

LatLong(double latitude, double longitude)
Constructs a new LatLong with the given latitude and longitude values, measured in degrees. [...]

Properties

hashCode int
The hash code for this object. [...]
read-only, override
latitude double
The internal latitude value.
final
longitude double
The internal longitude value.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

compareTo(LatLong latLong) int
This method is necessary for inserting LatLongs into tree data structures.
override
getLatitude() double
Returns the latitude value of this coordinate. [...]
getLatitudeE6() int
Returns the latitude value in microdegrees of this coordinate. [...]
getLongitude() double
Returns the longitude value of this coordinate. [...]
getLongitudeE6() int
Returns the longitude value in microdegrees of this coordinate. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Calculate the spherical distance from this LatLong to another. [...]
override

Operators

operator ==(Object other) bool
Calculate the Euclidean distance from this LatLong to another. [...]
override

Static Methods

fromMicroDegrees(int latitudeE6, int longitudeE6) LatLong
Constructs a new LatLong with the given latitude and longitude values, measured in microdegrees. [...]
fromString(String latLonString) LatLong
Constructs a new LatLong from a comma-separated String containing latitude and longitude values (also ';', ':' and whitespace work as separator). Latitude and longitude are interpreted as measured in degrees. [...]