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.
Finds the GeoLocationNode (City, or Region) with a name containing the value
stateCodeToName({required String code}) String
Resolves a Region.stateCode to its name