Conversion | Matterport SDK
Usage of the SDK constitutes your agreement with the Matterport SDK Agreement. Email developers@matterport.com with any questions.

Index

Functions

createIdMap

  • createIdMap(invert?: undefined | false | true): Promise<Dictionary<string>>
  • Generate a map between v2 IDs and v1 IDs

    This method will help with migration between IDs used for sweeps.

    const mapping = await mpSdk.Sweep.Conversion.createIdMap();
    

    Parameters

    • Optional invert: undefined | false | true

    Returns Promise<Dictionary<string>>

getLabelFromId

  • getLabelFromId(id: string): Promise<string>
  • Return the label associated with the provided sweep ID

    The label is what's displayed for the sweep in the workshop

    const label = mpSdk.Sweep.Conversion.getLabelFromId('abcdefghijklmno0123456789');
    

    Parameters

    • id: string

    Returns Promise<string>