There is no address support in the HTML 5 Geolocation API, but you can achieve this by combining it with the Google Maps API: here is an example of getting zipCode, but you can use it to get the whole address:
if(navigator.geolocation) { navigator.geolocation.getCurrentPosition(function(position) { var lat = position.coords.latitude; var long = position.coords.longitude; var point = new google.maps.LatLng(lat, long); new google.maps.Geocoder().geocode( {'latLng': point}, function (res, status) { var zip = res[0].formatted_address.match(/,\s\w{2}\s(\d{5})/); $("#location").val(zip); } ); }); }
source share