Protected
constructorThe accuracy of the provided position.
Readonly
onEvent to notify when north aligned orientation data is available to use. Use in combination with GeoLocation.getNorthAlignedHeading to acquire heading direction.
Exposes User Data
Retrieves the device's current location.
onSuccess
: a callback function that takes a GeoPosition object as its sole input parameter.
onError
: a callback function that takes a string error message as its sole input parameter.
Returns the name of this object's type.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other
. Useful for checking if two references point to the same thing.
The LocationService allows the user to provide their location to Lens applications if they so desire. For privacy reasons, the user is asked for permission to report location information.
Example
Examples for Visualising location coordinates in a 2D Map
For mobile platforms use Map Component. For Spectacles, follow the Location Guide section regarding location and heading visualization. If you would like to create your own version for a custom 2D Map Visualization, use the below example as a reference which utilizes Map Module.