Skip to content

astro.codex region lookup.Function.findCodexRegionForBoxel

github-actions[bot] edited this page Aug 26, 2026 · 73 revisions

@elite-dangerous-almanac/core / astro/codex-region-lookup / findCodexRegionForBoxel

Function: findCodexRegionForBoxel()

findCodexRegionForBoxel(id64): BoxelCodexRegionLookup

Defined in: src/astro/codex-region-lookup.ts:246

Find the galactic region of a system's boxel, from its system address (id64).

This is the region written to the player journal and shown on the codex main page for the system. It is resolved from the 0/0/0 corner of the system's boxel, which can differ from findCodexRegionAt of the system's exact coordinates near a region border.

Parameters

id64

SystemAddressInput

The 64-bit system address, as a bigint, a normally parsed journal number, or a decimal string (see SystemAddressInput).

Returns

BoxelCodexRegionLookup

The boxel corner coordinates — galactic light-years, Sol at origin — and the region there. Those coordinates are also the closest this library gets to a position for an id64 alone: the corner of the system's boxel, so they are accurate to one boxel edge (boxelEdgeLy of the size class: 10 ly for mass code a, 1280 ly for h).

Throws

If id64 is not a usable address representation.

Throws

If the address is outside 64 bits.

Example

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

findCodexRegionForBoxel(5306097239922n).region?.name; // -> the codex region

// Approximate position from an id64 alone (boxel corner, in light-years):
const { x, y, z } = findCodexRegionForBoxel(3309179996515n);
({ x, y, z }); // -> { x: 735, y: -185, z: -105 }

API

Guides
astro
Classes (1)
ProceduralSystem

Properties

Accessors

Methods

Interfaces (16)
Type Aliases (3)
Variables (11)
Functions (37)
Subpath modules (3)
commodities
Interfaces (1)
Type Aliases (1)
Variables (3)
Functions (3)
equipment
Interfaces (6)
Type Aliases (8)
Variables (3)
Functions (10)
Subpath modules (2)
i18n
Interfaces (1)
Type Aliases (1)
Functions (17)
materials
Enumerations (2)
Interfaces (2)
Type Aliases (2)
Variables (9)
Functions (9)
ships
Classes (3)
BuildMetrics

Methods

LoadoutEditError

Constructors

Properties

Methods

ShipLoadout

Accessors

Methods

Interfaces (125)
Type Aliases (44)
Variables (10)
Functions (85)
Subpath modules (8)

Clone this wiki locally