Finding a Visitor’s Coordinates

Getting the position information of the site visitor using the HTML5 geolocation API is fairly simple. It utilizes the three methods that are packed into the navigator.geolocation object — getCurrentPosition(), watchPosition() and clearWatch(). The following is a simple example of geolocation that displays your current position. But, first you need to agree to let the browser tell the web server about your […]