title: geocode reverse callback function not called
body: <p>I'm new to Javascript.  I'm trying to use Google api's Gmap v3 to realize a reverse geocodification. I've read many tutorials and wrote a simple code. The problem is that the anonymous function passed to geocoder.geocode() sometimes works but sometimes it doesn't. Thanks for your help!.</p>
  
  <pre><code>    function geoCode(latStr,lngStr){
  
  
        var lat = parseFloat(latStr);
        var lng = parseFloat(lngStr);
        var latlng = new google.maps.LatLng(lat, lng);
  
      codeLatLng(latlng,function(addr){
        alert(addr); // sometimes message appears.
      });
       }
  
  
    function codeLatLng(latlng,callback) {
        if (geocoder) {
          geocoder.geocode({'latLng': latlng}, function(results, status) {
            if (status == google.maps.GeocoderStatus.OK) {
              if (results[1]) {
                callback(results[1].formatted_address);
              } else {
                alert("No results found");
              }
            } else {
              alert("Geocoder failed due to: " + status);
            }
          });
        }
      }
  </code></pre>