getLanguageCode static method
- Coordinates coords
Returns language codes for the country that contains the coordinates.
Returns an empty list when the coordinates do not map to a known country.
Parameters
coords: (Coordinates) WGS84 coordinates.
Returns
- (
List<String>) Language ISO codes for the country, or an empty list.
Implementation
static List<String> getLanguageCode(final Coordinates coords) {
final OperationResult resultString = staticMethod(
'MapDetails',
'getLanguageCodes',
args: coords,
);
return (resultString['result'] as List<dynamic>).cast<String>();
}