title: How to restrict Google places api autocomplete for some city names and all state names?
body: <pre><code>&lt;form&gt;
      &lt;input id="pac-input" value="" class="controls" type="text" placeholder="Search Box"&gt;
      &lt;input type="button" id="find" value="find" /&gt;
  &lt;/form&gt;
  
  &lt;script&gt;
  function initAutocomplete() {
  
        var options = {
            componentRestrictions: { country: "IN" }
        };
        // Create the search box and link it to the UI element.
  
        var input = document.getElementById('pac-input');
        var searchBox = new google.maps.places.Autocomplete(input, options);
  }
  &lt;/script&gt;
  
  &lt;script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyD9CiSrNomU7HPw5PLIpFZYP6NXXOq0dlE&amp;libraries=places&amp;callback=initAutocomplete"
              async defer&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I want that in searchbox text like "Maharashtra,india", "mumbai", "india" should not come.Basically I need only regions and localities and not state names or city names to appear in suggestion.
  Can anybody help ?</p>