Javascript Geolocation
// http://daker.me/2013/06/5-html5-javascript-apis-to-keep-an-eye-on.html
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function(position) {
var lat = position.coords.latitude,
lon = position.coords.longitude;
console.log('Geolocation - Latitude: '+ lat +', Longitude: '+ lon);
});
}
else {
console.log('Geolocation is not supported for this Browser/OS version yet.');
}