Title: How to access geometryId from Space object in MappedIn Web SDK v6? Body: Hi MappedIn community, I'm working with the MappedIn Web SDK v6 (v6.11.0) and need help accessing the geometryId for spaces in my application

The Problem

I’ve discovered that space.locationProfiles[0].id can be duplicated across multiple physical spaces (e.g., two “Classroom 1” rooms in different buildings share the same locationProfiles ID: loc_7ececa8d243e0639). This causes issues when trying to uniquely identify rooms.

Looking at the MVF bundle structure:

  • locations.json shows that each location has multiple geometryAnchors, each with a unique geometryId (format: g_xxx)

  • The geometry/*.geojson files contain polygon features with properties.id matching these geometryIds

    // From locations.json
    {
    “id”: “loc_7ececa8d243e0639”,
    “details”: {“name”: “Classroom 1”},
    “geometryAnchors”: [
    {“geometryId”: “g_ff33b46ae249e48d”, “floorId”: “f_90bea84dbc84ccc0”},
    {“geometryId”: “g_3f36faa9d834f506”, “floorId”: “f_9b293a5d6e6f2075”}
    ]
    }

    What I Need

    I need to access the geometryId (the g_xxx identifier) for each space to use as a unique location identifier.

    What I’ve Tried

    1. Checked space.polygon and space.polygons - Both return undefined

    2. Checked space.geoJSON.properties - Returns null

    3. Checked space object keys - Only shows ['id', '__type']

    4. Explored space.id - Returns format s_ff33b46ae249e48d (note the s_ prefix instead of g_)

      Questions

      1. Is there an official SDK method to access the geometryId from a Space object?

      2. what’s the recommended approach to get a unique identifier per physical space that matches the geometry bundle data?**
        **

To begin, keep in mind that the ID values are ephemeral and designed to be used at runtime only. They can and will change when the map is edited. If you need static IDs that you can reference in your app the externalId field is designed for this use case. The SDK doesn’t expose the geometry IDs from the space object.

It is true that a Location can be assigned to multiple spaces. This allows a single entry such as Washroom to be used on multiple rooms.

However, you could create multiple similar locations and assign them to different spaces in the editor if you need to uniquely identify them that way. You could also look at other meta data, such as the FloorStack (building) or Floor of the Space.

1 Like