Earth class

A singleton providing search and proximity functions for geographical data about earth.

Constructors

Earth()
factory

Properties

countries Iterable<Country>
Gets all known countries on earth
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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
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 the target is invalid.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited