I want to get the formatted_adress from the json array. an example link could be http://maps.googleapis.com/maps/api/geocode/json?latlng=55.397563, 10.39870099999996&sensor=false
var url = "http://maps.googleapis.com/maps/api/geocode/json?latlng="+latlng+"&sensor=false";
$.getJSON(url, function(data) {
var adress = data['formatted_address'];
alert(adress);
});
but im getting "undefined"