Home > @magiclane/maps-sdk > Hemisphere > fromId

Hemisphere.fromId() function

Gets the Hemisphere from its id value

Signature:

function fromId(id: number): Hemisphere;

Parameters

Parameter

Type

Description

id

number

The id to convert

Returns:

Hemisphere

The corresponding Hemisphere

Exceptions

Error if the id is invalid