Package com.google.maps.gwt.client

Examples of com.google.maps.gwt.client.GeocoderResult


      @Override
      public void handle(JsArray<GeocoderResult> a, GeocoderStatus b) {
        // while (!(esCoordEspa�ola(coord))) {
        if (datosBusquedaInic()) {
          if (b == GeocoderStatus.OK) {
            GeocoderResult result = a.shift();
            coord = result.getGeometry().getLocation();
            System.out.println("Ahora cambio las coord: " + coord);
            if (ViewSelectorCiudad.ciudadActual != null
                && ViewSelectorCiudad.ciudadActual
                    .equals(ciudades.getValue(ciudades
                        .getSelectedIndex()))) {
              Document.get().getElementById("lon")
                  .setPropertyDouble("value", coord.lng());
              Document.get().getElementById("lat")
                  .setPropertyDouble("value", coord.lat());

            } else {
              RootPanel.get("wwo").clear();
              Document.get().getElementById("lon")
                  .setPropertyDouble("value", coord.lng());
              Document.get().getElementById("lat")
                  .setPropertyDouble("value", coord.lat());
              System.out.println(Document.get()
                  .getElementsByTagName("y").toString());

              mashupService.getWWOForecast(coord.lat(),
                  coord.lng(), new AsyncCallback<Forecast>() {

                    @Override
                    public void onFailure(Throwable caught) {
                      // TODO Auto-generated method stub

                    }

                    @Override
                    public void onSuccess(Forecast result) {
                      ViewSelectorCiudad.showForecast(
                          result,
                          ciudades.getValue(ciudades
                              .getSelectedIndex()));
                      if (!(result.getData()
                          .getCurrent_condition()
                          .get(0).getWeatherDesc()
                          .get(0).getValue()
                          .equals("Sunny"))) {
                        haysol = false;
View Full Code Here

TOP

Related Classes of com.google.maps.gwt.client.GeocoderResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.