What is the most straightforward GWT workaround for same origin policy restriction (trying to query google maps api)?
I am trying to do some basic geocoding using the google m开发者_Go百科aps API and a GWT dyanmic web project in Eclipse. For example, query the following URL:
http://maps.google.com/maps/geo?q=1600+Amphitheatre+Parkway,+Mountain+View,+CA&output=json&sensor=false
and get back the data for parsing. I am running into some confusion about whether it is better to set up a proxy or somehow use JSON with javascript (the 2 answers that I've come across to tutorials for). I have not been able to get either method working -- so I'm looking for some guidance. Thanks for your help in advance --
-Andrew
Why not just use the GWT Maps API? I think you can use the Geocoder class to do what you want.
精彩评论