title: Google Maps API: Get only street name and number
body: <p>I use the Google Maps API and so far I have only used formatted_address to output the result of my geocoding function. How do I need to modify my function in order to get <strong>ONLY the name of the street and the number?</strong> I want to insert them into an input field. </p>
  
  <p>My current function looks like this:</p>
  
  <pre><code>function getAndDisplayNewAddress(position) {
  
       var geocoder = new google.maps.Geocoder();
  
      // Find out longitude and latitude
      geocoder.geocode({
              'latLng' : position
      }, function(results, status) {
              if (status == google.maps.GeocoderStatus.OK) {
  
                   $('#display_of_street').val(results[0].formatted_address);
  
               }
      });
  
   }; // /function getAndDisplayStreet()
  </code></pre>