getCountryName static method

String getCountryName(
  1. Coordinates coords
)

Returns the display name of the country that contains the coordinates.

Parameters

  • coords: (Coordinates) WGS84 coordinate.

Returns

  • (String) The country name, or an empty string if none is found.

Implementation

static String getCountryName(final Coordinates coords) {
  final OperationResult resultString = staticMethod(
    'MapDetails',
    'getCountryName',
    args: coords,
  );

  return resultString['result'];
}