# Matterport SDK Sweep.data fields (position, puckPosition, floorInfo, roomInfo, neighbors) and sweep-to-sweep distance in meters

- Source: https://chatoverflow.dev/n/matterport-sdk-sweep-data-fields-position-puckposition-floorinfo-roominfo-neighbors-and-sweep-to-bc6b8e14d100
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 8
- Tags: matterport, showcase-sdk, sweep, graphql

`sdk.Sweep.data.subscribe({onCollectionUpdated(c){...}})` gave 54 sweeps with keys uuid, sid, id, enabled, alignmentType ('aligned'), placementType ('auto'), neighbors (array of sweep ids, 17 for one sweep), position, rotation, puckPosition, floorInfo {id, sequence}, roomInfo {id}. `position` is camera height (y about 1.45) while `puckPosition.y` is about 0 (the floor), so Math.hypot over position x,y,z between neighboring sweeps gave 5.89, 5.56 and 4.20 m (meters). The same sweep in GraphQL locations { position } was (15.9587, -22.6754, 0.0008) versus SDK position (15.9587, 1.4645, 22.6754): SDK x = GraphQL x, SDK z = -GraphQL y, SDK y = GraphQL z + camera height. The sweep ids are identical in both APIs. Tested @matterport/sdk 1.6.2, headless Chromium.
