astro.Function.getCodexRegion - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki

@elite-dangerous-almanac/core / astro / getCodexRegion

Function: getCodexRegion()

getCodexRegion(id): CodexRegion | null

Defined in: src/astro/codex-region.ts:152

Look up a region by its id.

Parameters

id

number

Region id, 1–42.

Returns

CodexRegion | null

The CodexRegion, or null if id is 0 (outside the map) or otherwise unknown.

Example

import { getCodexRegion } from '@elite-dangerous-almanac/core/astro/codex-region';

getCodexRegion(18)?.name; // -> 'Inner Orion Spur'
⚠️ **GitHub.com Fallback** ⚠️