The Geolocation API allows the developer to know the position of the user (if he wants, of course). Using a simple interface you can know the latitude and longitude, the accuracy margin, the heading direction and if the user is moving.
GeolocationSee the Pen by lodr (@lodr) on CodePen.