The navigator.gelocation API requests the user’s latitude, longitude, heading, and speed.
navigator.gelocation