getCountryBoundingRectangle static method

RectangleGeographicArea getCountryBoundingRectangle(
  1. String code
)

Returns the geographic bounding rectangle for a country code.

Parameters

  • code: (String) ISO 3166-1 alpha-3 country code.

Returns

  • (RectangleGeographicArea) The country's bounding rectangle in WGS84 coordinates.

Implementation

static RectangleGeographicArea getCountryBoundingRectangle(
  final String code,
) {
  final OperationResult resultString = staticMethod(
    'MapDetails',
    'getCountryBoundingRectangle',
    args: code,
  );

  return RectangleGeographicArea.fromJson(resultString['result']);
}