Origin:
google.maps.event.addDomListener(window, 'load', intilize);
function intilize(){
var autocomplete = new google.maps.places.Autocomplete(document.getElementById('txtautocomplete'));
google.maps.event.addListener(autocomplete, 'place_changed', function(){
var place = autocomplete.getPlace();
var location = "Address:" + place.formatted_address + "
";
";
location += "Latitude: " + place.geometry.location.lat() + "
";
";
location += "Longitude: " + place.geometry.location.lng();
document.getElementById('lblResult').innerHTML = location
});
};
from this code, im able to auto complete an address from google map and display the address, longitude, latitude.. how can i get this address, longitude, latitude to be saved into mysql database?
Rajveer SinghPosted Sep 24, 2016, 10:07 AM
Ramesh PalaniappanPosted Sep 23, 2016, 11:12 AM