Layout
The readable, drawable projections: a Site's full nested structure (optionally rendered server-side as an SVG floor plan) and a Zone's 2D grid. These are projections assembled across the aggregates, never separately stored state.
Get a site's full drawable layout
The primary 'draw the warehouse' endpoint. Returns the whole structure of one Site as a single nested document — zones → aisles → location slots — with every slot's exploded coordinates, type, capacity and status. Zones come back ordered by id, aisles in SequenceHint **walk order** (not registration order), and slots ordered bay → level → position, so a frontend can render a floor plan directly with no client-side joining or sorting.
List a site's locations by role
Answers 'where are this site's dock doors' (or any other LocationRole) without walking the full nested site layout (ADR-0016). Results are ordered zone → aisle → bay → level → position, like getSiteLayout's slots. Keyset-paginated: `limit` and `cursor`; follow `nextCursor` until it is absent.
Register a fixed structure
Adds a site-scoped physical obstacle — a wall, column, office, conveyor, or other fixed object — to the warehouse map (ADR-0017). A FixedStructure is not a location: nothing can be stowed at it. The site must already exist. Publishes FixedStructureRegistered.
List a site's fixed structures
Returns every FixedStructure registered at a site, ordered by id (ADR-0017). Keyset-paginated: `limit` and `cursor`; follow `nextCursor` until it is absent.
Get a zone as a 2D renderable grid
The second 'draw the warehouse' endpoint. Returns one Zone's slots as an explicit matrix: rows are Levels, columns are (Aisle, Bay) pairs in aisle SequenceHint walk order, and `rows[i].cells` is index-aligned with `columns`. A cell is literal JSON `null` wherever the rack has a gap; otherwise it lists the Positions at that coordinate. A UI iterates rows × columns and paints — no client-side layout maths.
Get one zone's travel graph
Returns one zone's travel graph (ADR-0017) as every waypoint (aisle + bay) and every directed, weighted edge between them, built fresh from the zone's aisles, registered slots, and active cross-aisles. An edge's metresM is derived from an aisle's real centreline geometry when set, or from the zone's bay pitch otherwise (flagged estimated). This context reports map TOPOLOGY only — never travel time or congestion, which remain wes-work-planning's concern.
Compute the shortest travel distance between two locations
Computes the shortest travel distance, in metres, between two coded locations over the pure-domain travel graph (ADR-0017): Dijkstra's algorithm honouring one-way aisles and active cross-aisles. The result is flagged `estimated` when any leg of the route used a zone's bay-pitch fallback instead of real aisle centreline geometry.