Geo Location - Get location based on where you are
Hi, Today i am going to share script how to get location based on where you are located. Here is the script, <!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>GMap location</title> <script type="text/javascript" src="//code.jquery.com/jquery-1.10.2.min.js"> </script> <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script> <script> $(document).ready(function() { navigator.geolocation.getCurrentPosition(function (pos) { var geocoder = new google.maps.Geocoder(); var lat = pos.coords.latitude; var lng = pos.coords.longitude; var latlng = new google.maps.LatLng(lat, lng); //reverse geocode the coordinates, returning location information. geocoder.geocode({ 'latLng': latlng }, function (results, st...