OS7 or later
This feature utilizes the built-in GPS/GNSS module of the Intelligent Edge series for positioning.
Note: In OS 7.0.0, this feature is currently in the experimental stage. Positioning may not function correctly, especially when LTE is active.
obniz.location.start()
Starts the positioning process.
// Javascript Example
obniz.location.start();
obniz.location.onupdate
This callback function is triggered whenever new positioning data is successfully retrieved. It returns a location information object.
// Javascript Example
obniz.location.start();
obniz.location.onupdate = ((data) => {
console.log(data);
/*
{
latitude: number;
longitude: number;
altitude: number;
accuracy: number;
speed: number;
}
*/
});