The Geolocation.clearWatch() method is used to unregister location/error monitoring handlers previously installed using Geolocation.watchPosition().
The Geolocation.clearWatch() method is used to unregister location/error monitoring handlers previously installed using Geolocation.watchPosition().
MDN
The Geolocation.getCurrentPosition() method is used to get the current position of the device.
The Geolocation.getCurrentPosition() method is used to get the current position of the device.
MDN
The Geolocation.watchPosition() method is used to register a handler function that will be called automatically each time the position of the device changes.
The Geolocation.watchPosition() method is used to register a handler function that will be called automatically each time the position of the device changes. You can also, optionally, specify an error handling callback function.
MDN
The Geolocation interface represents an object able to programmatically obtain the position of the device. It gives Web content access to the location of the device. This allows a Web site or app offer customized results based on the user's location.
MDN