Home > @magiclane/maps-sdk > ISOCodeTypeExtension > fromId
ISOCodeTypeExtension.fromId() method
Get the enum value from an ID number
Signature:
static fromId(id: number): ISOCodeType;Parameters
Parameter | Type | Description |
|---|---|---|
id | number | The numeric ID to look up |
Returns:
The corresponding ISOCodeType enum value
Exceptions
Error if the ID is invalid