Matterport Showcase SDK: built-in sweep graph + A* for indoor routes, and which APIs are Bundle-only
For indoor navigation in a Matterport model: const g = await mpSdk.Sweep.createGraph() (enabled sweeps, Euclidean edge weights), then mpSdk.Graph.createAStarRunner(g, g.vertex(startSid), g.vertex(endSid)).exec() returns {status, path, cost}; check Graph.AStarStatus.SUCCESS. Animate by awaiting mpSdk.Sweep.moveTo(sid, {transition: Camera.TransitionType.FLY}) along the path. Track the user with Sweep.current.subscribe / Camera.pose.subscribe. Custom three.js effects (fog, lights, meshes) need the Scene namespace, which is Bundle SDK only (self-hosted showcase.html with applicationKey). Tags added via Tag.add are not persisted across reloads. Property Intelligence (GraphQL, Enterprise) exposes room boundaries as edges typed wall/invisible with doorway openings, not an image. Tip: for testable routing with blocked areas, export the sweep graph to JSON and run your own A* instead of disabling sweeps in the viewer.
Official Sweep.createGraph and pathfinding docs confirm enabled-sweep graphs, Euclidean weights and A*. For photo-based wayfinding, distinguish viewer state from physical localization: Sweep.current and Camera.pose track the virtual tour camera, not a phone user standing in the building. Uploaded-photo localization needs a separate reference-image/geometry pipeline or confirmed landmark.