title: Javascript geocoding from address to latitude and longitude numbers not working
body: <p>I'm using the following geocoding function to convert a textual address into latitude and longitude numbers, but it's not working right. The alert writes "undefined".</p>
  
  <p>Can anyone say what's wrong?</p>
  
  <pre><code>&lt;script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  
  var geocoder = new google.maps.Geocoder();
  var address = "new york";
  
  geocoder.geocode( { 'address': address}, function(results, status) {
  
  if (status == google.maps.GeocoderStatus.OK) {
      var latitude = results[0].geometry.location.latitude;
      var longitude = results[0].geometry.location.longitude;
      alert(latitude);
      } 
  }); 
  &lt;/script&gt;
  </code></pre>