Hi,
I am trying to get json from google map api using ajax and jquery.
The code is something like
url: "('http://maps.google.com/maps/api/geocode/json?address=559/1,+9th cross+7th main+Gokula,+1st stage+bangalore,+Karnataka,+India&sensor=false')",
type: "POST",
dataType: "jsonp",
success: function(longlatJson) {
var jsonObj = JSON.parse(JSON.stringify(longlatJson));
var lat = jsonObj.results[0].geometry.location.lat;
var long = jsonObj.results[0].geometry.location.lng;
var latlng = new google.maps.LatLng(lat, long);
map.panTo(latlng);
},
I am failed to get the result. I mean it is coming out of the success function.
Can anyone help me to resovlethis?
Regards, Mahesh