Open PatrickFrankAIU opened 4 months ago
Incidentally, the data from the console window can actually be pasted into Google Maps. You have to strip off the headers but leave the comma and the minus sign intact, like this:
"12.345678, -12.345678" <-- paste this into Google Maps' search window (without the quotation marks)
If you paste in your own data you can see how accurate it is. Kinda scary, eh?
To display the time zone:
HTML addition:
JavaScript addition:
Older notes:
Here's the code to trigger geolocation:
Note: All this does is bring up this alert: This will return the user's precise latitude and longitude, which is displayed in the Console window. At that point you're "in business", but you'll need to research how to use this data.