JavaScript Geolocation position Property
JavaScript Geolocation position Property
The position property is used to return the position and altitude of the device on Earth. Some of its properties are:-
- coords
- timestamp
Further Explanation:-
Property | Description |
---|---|
position.coords | It returns the coordinates object that is used to define the current location. |
position.timestamp | It returns DOMTimeStamp representing the time at which the location was retrieved. |