title: Google Places API types functionality..
body: <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;&lt;/title&gt;
  
          &lt;script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?libraries=places&amp;sensor=true"&gt;&lt;/script&gt;
          &lt;script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"&gt;&lt;/script&gt;
          &lt;script type="text/javascript"&gt;
              $(function () {
                  var input = document.getElementById('location');
                  var options = {                    
                      types: ["locality"]
                  };
  
                  autocomplete = new google.maps.places.Autocomplete(input, options);
              });
          &lt;/script&gt;        
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div&gt;Location: &lt;input type="text" id="location" style="width:400px;" /&gt;&lt;/div&gt;               
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>There is my code to generate my autocomplete location text input. Google's list of supported types (<a href="http://code.google.com/apis/maps/documentation/places/supported_types.html">http://code.google.com/apis/maps/documentation/places/supported_types.html</a>) shows "locality" as being the type to use when I do not wish for everything to come back in the result(businesses, etc). I am getting no results.</p>
  
  <p>Basically, what I would like to achieve is to search for a city (IE: Toronto) And only see results like: "Toronto, ON, Canada". Perhaps I am confused on how I implement this API. </p>
  
  <p>Thank you very much for your replies! </p>