title: Get results from Google geocoder into an array?
body: <p>I have the following code:</p>
  
  <pre><code>var data = geocoder.geocode({'address': 'new york'}, function (results, status)
  {
      if(status == google.maps.GeocoderStatus.OK)
      {
          response($.map(results, function(item) 
          {
              return
              {
                  value: item.formatted_address
              }
          }));
      }
  });
  </code></pre>
  
  <p>I need to get the output of the data to look like this:</p>
  
  <pre><code>var data = [
      {value: 'some1'},
      {value: 'some2'},
      {value: 'some3'}
  ];
  </code></pre>
  
  <p>I really don't have a clue what Im doing to get it into that state and I'm not sure what exactly is returned by the initial geocoder request. The info on the google code website was rather limited when it came to explaining the above function.</p>
  
  <p>Any idea how I can do it? Thanks.</p>