CountryExtensions extension
Extension methods for interacting with Country instances.
- on
Methods
-
findClosest(
GeoCoords target) → GeoLocationNode? -
Available on Country, provided by the CountryExtensions extension
Finds the GeoLocationNode (City, Region, or Country) instance closest to the providedtarget
-
findClosestCity(
GeoCoords target) → City? -
Available on Country, provided by the CountryExtensions extension
Finds the City in this Country nearest to thetarget
. -
findClosestRegion(
GeoCoords target) → Region? -
Available on Country, provided by the CountryExtensions extension
Finds the Region in this Country nearest to thetarget
. -
search(
String value) → Iterable< GeoLocationNode> -
Available on Country, provided by the CountryExtensions extension
Finds the GeoLocationNode (City, or Region) with a name containing thevalue
-
stateCodeToName(
{required String code}) → String -
Available on Country, provided by the CountryExtensions extension
Resolves a Region.stateCode to its name