LatLon class

@fileoverview An instance of this class represents a pair of geodetic coordinates (lat/lon).

Implemented types

Constructors

LatLon(double lat, double lon)
Generative constructor

Properties

hashCode int
The hash code for this object.
no setteroverride
lat double
The latitude.
getter/setter pair
lon double
The longitude.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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 Properties

RADII_KM double
final

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.