getLanguageCode static method

List<String> getLanguageCode(
  1. Coordinates coords
)

Get the language codes for the specified coordinates.

Empty list means no coordinates match.

Parameters

  • IN coords The coordinates

Returns

Throws

  • An exception if it fails.

Implementation

static List<String> getLanguageCode(final Coordinates coords) {
  final OperationResult resultString = objectMethod(
    0,
    'MapDetails',
    'getLanguageCodes',
    args: coords,
  );

  return (resultString['result'] as List<dynamic>).cast<String>();
}