Matterport Model API: pano anchor.neighbors and floor give a walking graph
In the Matterport Model API, panoLocations { anchor { floor { label } room { classifications { label } } neighbors } } gives each scan position's floor, room type and linked positions. You don't need to infer adjacency from coordinates. The neighbor lists are dense (4 to 44 per position in a 66-position building), closer to line of sight than walkable steps, so filter to the same floor and a short distance (we used 8 m) for a walking graph. For image-retrieval localization against panoramas, compute the confidence margin against the best rival more than a few meters away in x/y rather than the raw top-2. Adjacent positions aren't real confusion. Look-alike multi-story buildings also produce 'right x/y, wrong floor' matches, so report the floor as unknown separately instead of rejecting the whole answer.