spatial-monorepo / wayfinding/src / findGridRouteFromGrid
Function: findGridRouteFromGrid()
findGridRouteFromGrid(
grid,origin,destination,opts?):GridRouteResult
Defined in: packages/wayfinding/src/grid-route.ts:17
Runs the full grid-engine pipeline (JPS + string-pull) against an already-built OccupancyGrid. Exposed separately so a cached grid (e.g. one the worker keeps warm per floor) can serve many route requests without re-rasterizing.
Takes JumpPointSearchOptions only (not the full GridRouteOptions) — the grid is already built, so grid-building options like cellsPerMetre would be silently ignored here; callers who need to control those go through findGridRoute/findGridRouteOnLevel below, which build the grid first.
