On May 29, 12:59 am, Ron Calzone <[email protected]> wrote: > Why doesn't the following work? > > $.getJSON("http://maps.google.com/maps/api/geocode/json?address=201+W+Capitol+Av...",
due to browser security restrictions, you can only capture data from JSON that originates from the same server as your HTML page. To get around this "cross domain" security restriction requires a service that supports JSONP, a format which includes a callback function name in the request. For example Flickr and Twitter offer JSONP services. In the Maps API, Google have provided objects to access their web services. You access the Google Maps API geocoding service within your code via the google.maps.Geocoder object. http://code.google.com/apis/maps/documentation/javascript/services.html#Geocoding ... -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
