Skip to content

astro.Function.findHandAuthoredRegionAt

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

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

Function: findHandAuthoredRegionAt()

findHandAuthoredRegionAt(position): HandAuthoredRegion | null

Defined in: src/astro/hand-authored-regions.ts:126

The hand-authored region containing a galactic point, or null for procedural space.

Because HAND_AUTHORED_REGIONS is sorted smallest-radius-first, the first region whose sphere set contains the point is the most specific one — matching the game's overlap priority.

Parameters

position

GalacticPosition

Galactic position in light-years (Sol at origin). All three axes are used — hand-authored regions are 3-D spheres, so y matters here (unlike the flat findCodexRegionAt). A ProceduralSystem.position value can be passed directly.

Returns

HandAuthoredRegion | null

The containing region, or null if the point is in procedural space.

Remarks

This resolves a hand-authored named sector only. For the codex region a point falls in, use findCodexRegionAt from ./codex-region-lookup instead.

Examples

import { findHandAuthoredRegionAt } from '@elite-dangerous-almanac/core/astro/hand-authored-regions';

findHandAuthoredRegionAt({ x: -80.6, y: -146.7, z: -343.3 })?.name;
// -> 'Pleiades Sector'

Resolving a permit lock from a position — the exact route, since it does not depend on how the system is named:

import type { GalacticPosition } from '@elite-dangerous-almanac/core/astro';
import { findHandAuthoredRegionAt } from '@elite-dangerous-almanac/core/astro/hand-authored-regions';

declare const position: GalacticPosition;

import { isPermitLockedRegionName } from '@elite-dangerous-almanac/core/astro/permit-locked-regions';

const region = findHandAuthoredRegionAt(position);
const needsPermit = region !== null && isPermitLockedRegionName(region.name);

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