Skip to main content
←API Reference ←com.nianticspatial.nsdk.sites

AssetArea


Declaration​

data class AssetArea

Summary​

One independently-localizable piece of an asset. A scan too large for a single mapping run is split, and each piece gets its own job, anchor, node graph and extent. An asset mapped in one pass has exactly one area. One shape serves every asset type. [AssetInfo.assetType] selects which properties carry anything:

  • mesh: [rootNodeId], [nodeIds], [meshCoverage]
  • splat: [rootNodeId]
  • VPS: [anchorPayload], [bounds]

Constructors​

constructor(areaId: String, jobStatus: AssetPipelineJobStatus, spaceId: String, rootNodeId: String, nodeIds: List<String>, anchorPayload: String, meshCoverage: Double, bounds: GeoBounds?)

Parameters​

NameTypeSummary
areaIdString
-
jobStatusAssetPipelineJobStatus
-
spaceIdString
-
rootNodeIdString
-
nodeIdsList<String>
-
anchorPayloadString
-
meshCoverageDouble
-
boundsGeoBounds?
-

Properties​

NameTypeSummary
anchorPayloadString
This area's anchor payload, base64-encoded ManagedPoseData. A legacy map identifier: an anchor payload is no longer the preferred method to identify the map to localize against. Pass a site ID to Vps2Session.localize or a coordinate to its lat/long overload.
areaIdString
This area's own identifier, unique within the asset.
boundsGeoBounds?
This area's geographic extent, or null when the portal published none, or one describing no usable area.
jobStatusAssetPipelineJobStatus
Status of this area's own mapping job. A job belongs to an area, so this is the only status the portal reports; [AssetInfo.pipelineJobStatus] is deprecated and left unset.
meshCoverageDouble
This area's mesh coverage in square meters.
nodeIdsList<String>
All node IDs from this area's space.
rootNodeIdString
Root node ID of this area's space.
spaceIdString
The space this area was mapped into.