ユーザーに場所の住所を入力させ、gwtでGoogleマップを使用して場所を地図に表示し、その場所を他のサービスに使用しようとしています。gwt-map 3.8 を使用しています。オンラインの javadoc は、このクラスがどのように機能するかを説明するのにあまり役に立たず、オンラインで例を見つけることができません。誰にもアイデアはありますか?
これは私がこれまでに持っているものです:
private void geocode()
{
final String addr = addressBox.getText().toUpperCase().trim();
addressBox.setFocus(true);
addressBox.setText("");
Geocoder G = Geocoder.create();
GeocoderRequest GReq = GeocoderRequest.create();
GReq.setAddress(addr);
// should this be just create or createarray? it won't let me use createarray
GeocoderResult GResult = GeocoderResult.create();
com.google.maps.gwt.client.Geocoder.Callback gcallback = new Geocoder.Callback() {
@Override
// i don't understand this handle part, the first parameter is not
//defined in the javadoc. I looked around online and it seems to be a
//array of geocoder result but I can't make the array because it's a
//javascript object
public void handle(GeocoderResult a[], GeocoderStatus b) {
}}};
お時間をいただきありがとうございます