Use the following URL to get a JSON with the address:
http://maps.googleapis.com/maps/api/geocode/json?latlng=44.4647452,7.3553838&sensor=true
In this case, the latitude is: 44.4647452 and the longitude: 7.3553838
An example, provided by the author of the peg is shown below:
var latlng = lat + "," +lng;
var url = "maps.googleapis.com/maps/api/geocode/json?latlng=" + latlng + "&sensor=true";
$.getJSON(url, function (data) {
for(var i=0;i<data.results.length;i++)
{
var adress = data.results[i].formatted_address;
//alert(adress);
document.getElementById('endereco_saida_maps').value = adress;
endereco_campo.value = adress;
}
});