D-Nice
D-Nice

Reputation: 4870

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 maps 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

Upvotes: 2

Views: 946

Answers (1)

Moishe Lettvin
Moishe Lettvin

Reputation: 8471

Why not just use the GWT Maps API? I think you can use the Geocoder class to do what you want.

Upvotes: 2

Related Questions