Skip to content

astro.Function.encodeSystemAddress

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

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

Function: encodeSystemAddress()

encodeSystemAddress(parts, origin): bigint

Defined in: src/astro/system-address.ts:353

Encode system-name parts and a resolved region origin into a system address.

Parameters

parts

SystemNameParts

The parsed system-name parts, as parseSystemName returns (letters and mass code are zero-based numeric indices, not characters).

origin

NamingRegionOrigin

The region origin (internal units), from resolveNamingRegionOrigin in ./naming-region-origins.

Returns

bigint

The 64-bit system address.

Throws

If the mass code is outside 0–7, a letter is outside 0–25, n1 is not one the boxel packer accepts, the origin has a negative coordinate, the name's boxel code or sector falls outside the address layout, or the sequence does not fit its size-class-dependent field.

Example

import { resolveNamingRegionOrigin } from '@elite-dangerous-almanac/core/astro/naming-region-origins';
import { encodeSystemAddress } from '@elite-dangerous-almanac/core/astro/system-address';
import { parseSystemName } from '@elite-dangerous-almanac/core/astro/system-name';

const parts = parseSystemName('Synuefe EN-H d11-96')!;
encodeSystemAddress(parts, resolveNamingRegionOrigin(parts.regionName)!); // -> 3309179996515n

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