Home > @magiclane/maps-sdk > MapDetails > getCountryName
MapDetails.getCountryName() method
Returns the display name of the country that contains the coordinates.
Signature:
static getCountryName(coords: Coordinates): string;Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
coords |
WGS84 coordinate |
Returns:
string
The country name, or an empty string if none is found