getCountryCodeByIndex static method

String getCountryCodeByIndex(
  1. int index
)

Get the ISO 3166-1 alpha-3 country code for the specified index.

Empty string means no country. See: http://en.wikipedia.org/wiki/ISO_3166-1 for the list of codes.

Parameters

  • IN index The country index

Returns

Throws

  • An exception if it fails.

Implementation

static String getCountryCodeByIndex(final int index) {
  final OperationResult resultString = objectMethod(
    0,
    'MapDetails',
    'getCountryCodeByIndex',
    args: index,
  );

  return resultString['result'];
}