LatLon class
@fileoverview An instance of this class represents a pair of geodetic coordinates (lat/lon).
- Implemented types
Properties
Methods
-
getSimpleDistance(
LatLon end) → double - Simple distance. From https://stackoverflow.com/questions/41515987/query-list-for-items-based-on-function-result
-
haversine(
LatLon end) → double - Haversine compute distance
-
marshal(
MarshalledObject marshalled) → void -
Marshal method must operate by mutating empty object passed.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Returns a nice string representing the coordinate.
@return {string} In the form (50, 73).
@override
override
Operators
-
operator ==(
Object other) → bool -
Compares coordinates for equality.
override
Static Methods
-
isValidLat(
double lat) → bool -
true if
lat
is a valid latitude in the range -90..90 -
isValidLon(
double lon) → bool -
true if
lon
is a valid longitude in the range -180..180 -
unmarshal(
MarshalledObject marshalled) → LatLon - Encoded object parameter is encoded depending on format.