Horje
How to create HTML getCurrentPosition() Method - Return Data

The getCurrentPosition() method returns an object on success. The latitude, longitude and accuracy properties are always returned. The other properties are returned if available:

Property Returns
coords.latitude The latitude as a decimal number (always returned)
coords.longitude The longitude as a decimal number (always returned)
coords.accuracy The accuracy of position (always returned)
coords.altitude The altitude in meters above the mean sea level (returned if available)
coords.altitudeAccuracy The altitude accuracy of position (returned if available)
coords.heading The heading as degrees clockwise from North (returned if available)
coords.speed The speed in meters per second (returned if available)
timestamp The date/time of the response (returned if available)






Related Articles
What is HTML Geolocation API HTML Geolocation API
How to create HTML Locate the User's Position HTML Geolocation API
What type of browsers will support for HTML Geo Location HTML Geolocation API
How to Use HTML Geolocation HTML Geolocation API
How to add Handling Errors and Rejections HTML Geolocation API
What is Location-specific Information HTML Geolocation API
How to create HTML getCurrentPosition() Method - Return Data HTML Geolocation API
How to create HTML Geolocation Object - Other interesting Methods HTML Geolocation API


Read Full:
HTML Geolocation API
Category:
Web Tutorial
Sub Category:
HTML Geolocation API
Uploaded:
1 year ago
Uploaded by:
Admin
Views:
50


Reffered: https://www.w3schools.com/html/html5_geolocation.asp

Share on: