@openhps/geospatial
    Preparing search index...

    Class SpaceConnection

    A connection between two symbolic spaces.

    The connection point itself is stored on the owning [[SymbolicSpace]] (in the connectedSpaces boundary map); this object adds the metadata that map cannot hold: what the connection is (a door, an opening, a stairs link, ...) and how wide it is.

    The position is resolved at runtime from the boundary map and is therefore not persisted; the connection point of a serialized space is still part of the serialized connectedSpaces map, so nothing is lost.

    const connection = new SpaceConnection('room-201', 'door', new Absolute2DPosition(4, 7), 0.9);
    
    Index
    position?: AbsolutePosition

    The connection point in the frame of the connected spaces.

    This is populated from the connectedSpaces boundary map, it is not serialized separately.

    targetUID: string

    The uid of the connected space.

    type: SpaceConnectionKind = 'adjacent'

    The semantic kind of the connection.

    width?: number

    The clear width of the connection in metres, when known.