localize
Declaration
func localize(siteId: String) throws
Summary
Throws
NSDKError.invalidArgumentif the site ID is empty.
Notice
Note: May be called before start(); the request is deferred and dispatched
Parameters
| Name | Type | Summary |
|---|---|---|
| siteId | String | The identifier of the site to localize to. |
Overload
Summary
Requests localization near a geographic coordinate.
Looks up every site holding VPS assets within radiusMeters of the coordinate and
localizes against all of their assets. The radius is the only way to narrow the
search. Asynchronous: observe $latestLocalization for the outcome.
Requests are additive: calling this again does not disturb a request already in
flight, and the assets accumulate.
Throws
NSDKError.invalidArgumentif a coordinate is out of range, the radius is negative, or any argument is not a finite number.
Notice
Note: May be called before start(); the request is deferred and dispatched
Notice
Warning: Submitted assets stay in the localization set for the lifetime of the
Parameters
| Name | Type | Summary |
|---|---|---|
| siteId | String | The identifier of the site to localize to. |
Requests localization to a site, identified by its site ID.
Localizes against the site's production-deployed VPS assets and only those: an
asset that has not been deployed to production cannot be localized against.
Asynchronous: observe
$latestLocalizationfor the outcome.Requests are additive: calling this again does not disturb a request already in
flight, and the sites accumulate.