The following method is right our of the geocode deveoper's guide See: http://code.google.com/apis/gdata/docs/json.html

What's more, if you copy this to your browser and run it, it will return json. My only problem is doing all of that in PHP or JS so I can capture the json to a variable and parse out the lat-lgn.

http://maps.google.com/maps/api/geocode/json?address=201+W+Capitol+Ave,+Jefferson+City,+MO,+651011&sensor=false

I would be glad to use any other geocode system, though, if any can suggest one.....

Thanks!

- Ron


On 5/28/2010 3:36 PM, William wrote:
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.

Reply via email to