Skip to content

spatial-monorepo


spatial-monorepo / wayfinding/src / findNearestLandmarkName

Function: findNearestLandmarkName()

findNearestLandmarkName(archive, levelId, coordinate, radiusM?): string | undefined

Defined in: packages/wayfinding/src/landmarks.ts:92

Finds the nearest named unit/amenity to coordinate on levelId, within radiusM (default DEFAULT_LANDMARK_RADIUS_M). Returns its resolved display name (resolveLabelDisplayName), or undefined when nothing named is within range (issue #485 AC2/AC3).

Parameters

archive

IMDFArchive

levelId

string

coordinate

Position2D

radiusM?

number = DEFAULT_LANDMARK_RADIUS_M

Returns

string | undefined

Released under commercial licensing.