astro.Function.getCodexRegion - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki
@elite-dangerous-almanac/core / astro / getCodexRegion
getCodexRegion(
id):CodexRegion|null
Defined in: src/astro/codex-region.ts:152
Look up a region by its id.
number
Region id, 1–42.
CodexRegion | null
The CodexRegion, or null if id is 0 (outside the map)
or otherwise unknown.
import { getCodexRegion } from '@elite-dangerous-almanac/core/astro/codex-region';
getCodexRegion(18)?.name; // -> 'Inner Orion Spur'