Skip to main content
←API Reference ←com.nianticspatial.nsdk.mapping ←MappingStorageSession

createRootAnchor


Declaration​

fun createRootAnchor(): String?

Summary​

Creates an anchor on the existing map located at the origin of the current AR session,
if possible.


The root anchor represents the origin point of the map coordinate system and can be
used with VPS for localization.

Returns​

The base64-encoded anchor payload if successful, or null if no anchor payload exists.