CountryExtensions extension
Extension methods for interacting with Country instances.
- on
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
. -
findClosestRegion(
GeoCoords target) → Region? -
Finds the Region in this Country nearest to the
target
. -
search(
String value) → Iterable< GeoLocationNode> -
Finds the
GeoLocationNode
(City, or Region) with a name containing thevalue
-
stateCodeToName(
{required String code}) → String - Resolves a Region.stateCode to its name