The Geolocation API defines a high-level interface to location information delivered by the device, such as latitude and longitude. The API itself is independent of the underlying location information sources, such as GPS and location obtained based on IP address, MAC address, etc.
The object can be accessed using the window.navigator.Geolocation
reference.
Name | Return type | Description |
---|---|---|
getCurrentPosition | object |
Passes the device's current position. When called, it returns the initial |
watchPosition | long |
This method returns the |
clearWatch | undefined |
When called, it first checks the value of the given |