Skip to main content
API Reference com.nianticspatial.nsdk

VPS2Config

Configuration structure for the VPS2 session.

Declaration

class VPS2Config

Properties

NameTypeSummary
continuousVpsRequestsPerSecondFloat
Number of VPS localization requests per second to send the server while successfully localized on a VPS map. Default: 0.2f (native default)
enableGeolocationSmoothingBoolean
If true, geolocation smoothing is enabled. Default: true (native default)
enableUniversalLocalizationBoolean
If true, universal localization is enabled. Universal localization provides geographic positioning that works anywhere without requiring pre-scanned maps. Default: false (native default is applied if you leave this unset/zeroed).
enableVpsMapLocalizationBoolean
If true, VPS map localization is enabled. VPS maps only exist in pre-scanned areas. Your device must be localized on a VPS map in order for VPS anchors to be placed with high accuracy. Default: true (native default)
initialVpsRequestsPerSecondFloat
Number of VPS localization requests per second to send the server prior to the first successful localization on a VPS map. Default: 1.0f (native default)
universalLocalizationRequestsPerSecondFloat
Number of requests per second to send to server for universal localization. Default: 4.0f (native default)