I'm going to share a working navigator.geolocation.watchPosition() code I used when I wanted the user to know his current location in real time (while he is walking or riding a vehicle) using his Android device or any device with a browser that supports the Geolocation API.
Today's code running in my tablet.
Live Demo
Recommended to use a mobile device, you must allow it to get your
↧