0

I am getting no response from the $.getJSON

    $.getJSON('http://maps.googleapis.com/maps/api/geocode/json?address=' + address +'&sensor=false',function(data){
        var resultsArray = data;
    });

Can anyone help?

Paul
  • 1,375
  • 4
  • 16
  • 29

1 Answers1

1

You didn't provide much detail, but your problem is almost certainly your browser denying the cross-domain request (throwing an Access-Control-Allow-Origin error).

Instead, use Google's Geocoding API. See this question for more details.

Community
  • 1
  • 1
cheeken
  • 33,663
  • 4
  • 35
  • 42