title: google places autocomplete API limit to only universities
body: <p>Hello I am having an issue with the Google places Autocomplete API. I am looking to have it so users can only search for universities. Is this possible? This is my current code:</p>
  
  <pre><code>    //Limits search results to only us places.
      var options = {
      types: ['university','establishment'],
      componentRestrictions: {country: "us"}
      };
  
    var input = document.getElementById('searchTextField');
  autocomplete = new google.maps.places.Autocomplete(input, options);    
  google.maps.event.addListener(autocomplete, 'place_changed', function() {
      &lt;?php if($this-&gt;uri-&gt;segment(1)=='0')
      {  ?&gt;
      $('.advanced_search').show();
        &lt;?php } elseif($this-&gt;uri-&gt;segment(2)=='edit') { ?&gt;
     $('.advanced_search_rooms').hide();   
     &lt;?php }
  </code></pre>