Skip to content

astro.codex region lookup

github-actions[bot] edited this page Aug 13, 2026 · 1 revision

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

astro/codex-region-lookup

Resolve a coordinate or system address to its Elite Dangerous galactic codex region.

The region a system belongs to is fixed by its position on a flat ≈49.35 ly (4096 / 83 ly) grid over the galactic plane. Each region's cells are stored as run-length geometry in data/astro/galactic-region-cells.jsonc (kept separate from the lightweight metadata so metadata-only consumers never bundle it); this module rebuilds a per-row lookup index from them. The per-region metadata objects live in ./codex-region.

Two lookups are provided, matching the two things the game calls "the region":

  • findCodexRegionAt — the region at a set of coordinates (what the codex records a discovery against, and what is shown when jumping into a system).
  • findCodexRegionForBoxel — the region of a system's boxel 0/0/0 corner (what the journal and the codex main page display for the system).

These can differ near a region border; see the upstream discussion linked in the data file's attribution.

Algorithm ported from klightspeed's EliteDangerousRegionMap (RegionMap.js), See ATTRIBUTIONS.md for credit and licence terms.

Interfaces

Variables

Functions

References

SystemAddressInput

Re-exports SystemAddressInput

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