Home > @magiclane/maps-sdk > Gate > fromId
Gate.fromId() function
Get Gate from ID.
Signature:
function fromId(id: number): Gate;Parameters
Parameter | Type | Description |
|---|---|---|
id | number | The gate ID |
Returns:
Corresponding Gate value
Exceptions
Error if ID is invalid