title: Get place_id of a specific address component
body: <pre><code>var autocomplete;
  
  function initialize() {
      autocomplete = new google.maps.places.Autocomplete(
          (document.getElementById('autocomplete')), {
              types: ['address']
          });
      google.maps.event.addListener(autocomplete, 'place_changed', function() {
          fillInAddress();
      });
  }
  
  function fillInAddress() {
      var place = autocomplete.getPlace();
      /* need to get the neighborhood place_id here */
  }
  </code></pre>
  
  <p>My <code>place</code> object is a full address and what I need is the <code>place_id</code> for a specific component of this address: the <code>neighborhood</code>.</p>
  
  <p>I tried to make a reverse-geocoding using the <code>latlng</code> of my <code>place</code> object and filtering by <code>neighborhood</code> (<a href="https://maps.googleapis.com/maps/api/geocode/json?latlng=xxx,yyy&amp;result_type=neighborhood" rel="noreferrer">https://maps.googleapis.com/maps/api/geocode/json?latlng=xxx,yyy&amp;result_type=neighborhood</a>), but it returns multiple results and eventually multiple (and incorrect) neighborhoods.</p>
  
  <p>Is there anyway to get the <code>place_id</code> of the neighborhood?</p>