Home > @magiclane/maps-sdk > ISOCodeConversions > convertCountryIso
ISOCodeConversions.convertCountryIso() method
Converts a country ISO code (ISO2 <-> ISO3).
Signature:
static convertCountryIso(code: string, type: ISOCodeType): string;Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
code |
string |
The country ISO code to be converted. |
|
type |
The result country ISO code type. |
Returns:
string
The converted country ISO code.