Home > @magiclane/maps-sdk > MapDetails > getLanguageCode
MapDetails.getLanguageCode() method
Returns language codes for the country that contains the coordinates.
Returns an empty list when the coordinates do not map to a known country.
Signature:
static getLanguageCode(coords: Coordinates): string[];Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
coords |
WGS84 coordinates |
Returns:
string[]
Language ISO codes for the country, or an empty list