148
rated 0 times
[
150]
[
2]
/ answers: 1 / hits: 31959
/ 11 Years ago, wed, october 16, 2013, 12:00:00
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
More From » jquery