Skip to main content
←API Reference ←NianticSpatial.NSDK.AR.VPS2 ←ARVps2Manager

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 TryGetLatestLocalization'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); otherwise false.

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 TryGetLatestLocalization'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); otherwise false.

Parameters​

NameTypeSummary
siteIdstring
The identifier of the site to localize to.