Skip to main content
←API Reference ←NianticSpatial.NSDK.AR.XRSubsystems ←XRVps2Subsystem

TryLocalize

Requests localization to a site, identified by its site ID.

Declaration​

public bool TryLocalize(string siteId)

Summary​

Requests localization to a site, identified by its site ID.

Remarks​

Localizes against the site's production-deployed VPS assets only. Asynchronous:
observe the outcome via GetLatestLocalization's localized asset and
tracking state. Requests are additive, and submitted assets stay in the
localization set for the lifetime of the session.

Returns​

True if the request was started (or deferred until the subsystem starts).

Parameters​

NameTypeSummary
siteIdstring
The identifier of the site to localize to.

Overload​

public bool TryLocalize(double latitude, double longitude, double radiusMeters = 0)

Summary​

Requests localization near a geographic coordinate.

Remarks​

Looks up every site holding VPS assets within radiusMeters of the
coordinate and localizes against their production-deployed assets only.
Asynchronous: observe the
outcome via GetLatestLocalization's tracking state and localized asset.
Requests are additive, and submitted assets stay in the localization set for the
lifetime of the session.

Returns​

True if the request was started (or deferred until the subsystem starts).

Parameters​

NameTypeSummary
siteIdstring
The identifier of the site to localize to.