title: Google GeoCode Autocomplete limit State
body: <p>I am trying to add an Google Geocode Autocomplete field to my form.</p>
  
  <p>I have been able to get it to restrict the results returned to the country (AU) but it would be even better if I could limit the results to the state as well. (New South Wales/NSW)</p>
  
  <p>This is my current <code>initialize()</code> function:</p>
  
  <pre><code>function initialize() {
  var options = {
  types: ['geocode'],
      componentRestrictions: {country:"AU"}
  };
    autocomplete = new google.maps.places.Autocomplete(
    (document.getElementById('autocomplete')),options);
    google.maps.event.addListener(autocomplete, 'place_changed', function() {
    fillInAddress();
    });
  }
  </code></pre>
  
  <p>I have read the documentation and found that you can use the <code>types</code> parameter to restrict the results, but I have been unable to work out what the exact code should be.</p>
  
  <p>Simply changing it to:</p>
  
  <pre><code>types: ['administrative_area1':'NSW'], // OR 'New South Wales'
  </code></pre>
  
  <p>and various combinations similar to the above (= instead of : etc) have not worked..</p>
  
  <p>Could someone point me in the right direction towards what the actual syntax is for what I am trying to achieve?</p>
  
  <p>Thanks.</p>