Skip to content

spatial-monorepo


spatial-monorepo / core/src / UseOccupancyAwareReroutingOptions

Interface: UseOccupancyAwareReroutingOptions

Defined in: packages/core/src/wayfinding/useOccupancyAwareRerouting.ts:37

Properties

bus

bus: DataBus | null

Defined in: packages/core/src/wayfinding/useOccupancyAwareRerouting.ts:39

DataBus to subscribe to for occupancy/reservation events. Pass null to disable.


debounceMs?

optional debounceMs?: number

Defined in: packages/core/src/wayfinding/useOccupancyAwareRerouting.ts:43

Debounce window (ms) — see useOccupancyAvoidance.


directionOptions?

optional directionOptions?: DirectionOptions

Defined in: packages/core/src/wayfinding/useOccupancyAwareRerouting.ts:45

Base options merged with the live avoidanceZones on every recompute (e.g. accessible, engine, restrictionSchedule).


onRerouted?

optional onRerouted?: (result) => void

Defined in: packages/core/src/wayfinding/useOccupancyAwareRerouting.ts:47

Called with the freshly recomputed route whenever a settled zone-set change triggers a reroute.

Parameters

result

DirectionsResult

Returns

void


policy?

optional policy?: VenueAvoidancePolicy

Defined in: packages/core/src/wayfinding/useOccupancyAwareRerouting.ts:41

Per-venue soft/hard block policy — defaults to wayfindingSlice.avoidancePolicy when omitted.

Released under commercial licensing.