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

TryGetDeviceGeolocation


Declaration

public bool TryGetDeviceGeolocation(out XRVps2Geolocation geolocationOut, HeadingMode headingMode = HeadingMode.CameraDirection)

Parameters

NameTypeSummary
geolocationOutXRVps2Geolocation
Receives the geolocation data on success.
headingModeHeadingMode
Controls how the heading is derived.
Use CameraDirection when the device is upright,
or DeviceTop when flat or for a compass-style heading.