title: map api viewport longitude and latitude are off
body: <p>I'm working on a dynamic map API which you can set as you like to. After a person puts in the name of his place I can get the viewport latitude and longitude. First of all, I get 2 values and second they are are both off according to the real coordinates. I see the result back to my own map API as well. </p>
  
  <p>After much confusing I started to compare the 2 and divide them. This still gives a wrong integer. 
  With this I get the values which are coupled to the name that has been given.  </p>
  
  <pre><code>google.maps.event.addDomListener(searchBox, 'places_changed', function(event) {
  
         var places = searchBox.getPlaces();
  
  
         var bounds = new google.maps.LatLngBounds();
         var i, place;
  
         for (i = 0; place = places[i]; i++) {
            bounds.extend(place.geometry.location);
            marker.setPosition(place.geometry.location);
            for(key in places) {
                 if(places.hasOwnProperty(key)) {
                     var value = places[key];
                     var geoLong = value.geometry.viewport.b.b;
                     var geoLat = value.geometry.viewport.f.f;
  </code></pre>
  
  <p><strong>Example:</strong> </p>
  
  <p>Empire State builiding: Real coordinates: 40.748817, -73.985428.</p>
  
  <p>My results: latitude: 40.746983 and 40.749681 : longitude -73.983858 and -73.986556.</p>
  
  <p>This is from geometry.viewport.b.(b or f) and geometry.viewport.f.(b or f) That's how I retrieved the information.</p>
  
  <p><strong>Possible solution:</strong></p>
  
  <p>After much try and error of getting the right results, I stumbled onto this.  </p>
  
  <pre><code>google.maps.event.addListener(map, 'click', function(event){
      console.log( "Latitude: "+event.latLng.lat()+" "+", longitude: "+event.latLng.lng() );
  });
  </code></pre>
  
  <p>While this is giving the right value back I can't call it like I did with the other 2. It keeps saying that latLng is undefined and that is true because it doesn't work with the objects/array which is given by places. </p>
  
  <p><strong>Question:</strong> How come that the viewport is giving a different value then the real coordinates?</p>