On Jul 3, 5:34 am, Albertux <[email protected]> wrote: > > I always get empty data, what I'm doing wrong. >
that's due to the browser's same-origin security policy which prevents cross-domain Ajax requests. getJSON will work with data from your own server, but you can also use it cross-domain with JSONP services which provide a callback in the url, eg the Flickr and Twitter APIs. You could also put a proxy on your server to forward the request to the google service. the HTTP web services are designed to be used with server-side languages. In the browser you can use the javascript API class google.maps.Geocoder() 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.
