title: Get a address_components
body: <p>I'm using google places API with geocoding. I have a problem with address components type.</p>
  
  <p>I want to get information about address which user typed in autocomplete in this format:<br>
  Street number/ street / City/ Province/ Country.</p>
  
  <p>If user autocompleted "Street 12, SomeCity, SomeProvince, SomeCountry", I want to return in alert all of this information. But when user type only "someProvince, SomeCountry", I want to have only province and country address type.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>google.maps.event.addListener(autocomplete, 'place_changed', function () {
      var place = autocomplete.getPlace();
      alert('0: ' + place.address_components[0].long_name);
      alert('1: ' + place.address_components[1].long_name);
      alert('2: ' + place.address_components[2].long_name);
      alert('3: ' + place.address_components[3].long_name);
      alert('4: ' + place.address_components[4].long_name);
      alert('5: ' + place.address_components[5].long_name);
      alert('6: ' + place.address_components[6].long_name);
      alert('7: ' + place.address_components[7].long_name);
  )};
  </code></pre>
  
  <p>Problem is that when user autocomplete full address, it show properly all of this alerts. But when autocomplete only part of information - only country - it will show 7 times what country is typed. </p>
  
  <p><a href="http://gmaps-samples-v3.googlecode.com/svn/trunk/places/autocomplete-addressform.html" rel="noreferrer">http://gmaps-samples-v3.googlecode.com/svn/trunk/places/autocomplete-addressform.html</a></p>
  
  <p>I want to have, that when street and city is not given, it will show alert ("street is null" etc). How to do it?</p>