Skip to content

spatial-monorepo


spatial-monorepo / wayfinding/src / DEFAULT_VENUE_AVOIDANCE_POLICY

Variable: DEFAULT_VENUE_AVOIDANCE_POLICY

const DEFAULT_VENUE_AVOIDANCE_POLICY: Required`<VenueAvoidancePolicy>`

Defined in: packages/wayfinding/src/occupancy-zones.ts:54

Default policy this repo ships with, applied whenever a venue does not supply its own VenueAvoidancePolicy override.

Defaulted to 'soft' for both occupied and reserved rooms — a deliberate, conservative choice (see the PR description's "Policy/UX decision defaulted — needs human review" section for the full writeup): hard-blocking every occupied/reserved room by default risks stranding a route ("no route found") whenever the only path to a destination happens to pass through a busy room — e.g. an open-plan "room" that also serves as a through-corridor, or a meeting room booked back-to-back all day. Soft avoidance (cost-penalized, ladder-relaxable on the grid engine, weighted on the legacy engine) gets the same "prefer a route around the busy room" behavior in the common case while never blocking wayfinding outright. A venue that wants the stricter HEB-style hard block (matching block_in_use_rooms/block_reserved_in_use_rooms literally) sets occupiedRoomBlockMode/reservedRoomBlockMode to 'hard' explicitly.

Released under commercial licensing.