title: Waiting for google maps geocoder?
body: <pre><code>geo = function(options){
      geocoder.geocode( options, function(results, status) {
          if (status == google.maps.GeocoderStatus.OK) {
              var x = results;
              alert('pear');
              return x;
          } else {
              return -1;
              }
          });
      }
  
  getAddr = function(addr){
      if(typeof addr != 'undefined' &amp;&amp; addr != null) {
          var blah = geo({ address: addr, });
                      alert('apple');
                      return blah;
      }
      return -1;
  }
  </code></pre>
  
  <p>So when I call getAddr I get undefined, also apple is alerted first and then pear.  I realize that google maps geocodes asynchronously, but is there a way to make this work?</p>