This is an example of getting latitude and longitude from the user's device.
Click Allow when propted that the site wants to know your location.