spatial-monorepo / wayfinding/src / getDirectionsGridEngine
Function: getDirectionsGridEngine()
getDirectionsGridEngine(
archive,graph,origin,destination,opts?):DirectionsResult
Defined in: packages/wayfinding/src/directions-grid.ts:83
Grid-engine implementation of getDirections (issue #483): resolves origin/destination NavTargets to graph nodes exactly like the legacy engine (same resolveOriginCandidates/toTargetArray semantics, so null/array/current-location handling is identical), then routes every non-self (origin, destination) candidate pair via findMultiFloorGridRoute and keeps the cheapest by total distance — mirroring getDirections's "try every pair, keep the cheapest" contract.
Parameters
archive
graph
origin
string | string[] | null
destination
string | string[]
opts?
DirectionOptions = {}
