Earth class
A singleton providing search and proximity functions for geographical data about earth.
Constructors
- Earth.new()
-
factory
Properties
Methods
-
findClosest(
GeoCoords target) → GeoLocationNode? -
Finds the GeoLocationNode (City, Region, or Country) instance closest to the provided
target
-
findClosestCity(
GeoCoords target) → City? -
Finds the City in this Country nearest to the
target
. -
findClosestCountry(
GeoCoords target) → Country? -
Finds the Country instance closest to the provided
target
-
findClosestRegion(
GeoCoords target) → Region? -
Finds the Region in this Country nearest to the
target
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
search(
String value) → Iterable< GeoLocationNode> -
Finds the GeoLocationNode (City, or Region) with a name containing the
value
-
timezonesFor(
GeoCodedIdentity target) → List< Timezone> -
Finds the Timezones for the Country identified by the
target
. Throws an ArgumentError, if thetarget
is invalid. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited