getCountryCode static method
- Coordinates coords
Returns the ISO 3166-1 alpha-3 country code for the supplied WGS84 coordinates.
The method returns an empty string when the coordinates do not fall within any recognised country.
Parameters
coords: (Coordinates) WGS84 coordinates.
Returns
- (
String) ISO 3166-1 alpha-3 country code, or an empty string.
Implementation
static String getCountryCode(final Coordinates coords) {
final OperationResult resultString = staticMethod(
'MapDetails',
'getCountryCode',
args: coords,
);
return resultString['result'];
}