title: How to limit google autocomplete results to City and Country only
body: <p>I am using google autocomplete places javascript to return suggested results for my searchbox , what I need is to only show the city and the country related to the characters entered but google api will give a lot of general places results which I dont need , so how to limit the result to show only city and the country .</p>
  
  <p>I am using the following Example:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;style type="text/css"&gt;
     body {
           font-family: sans-serif;
           font-size: 14px;
     }
  &lt;/style&gt;
  
  &lt;title&gt;Google Maps JavaScript API v3 Example: Places Autocomplete&lt;/title&gt;
  &lt;script src="http://maps.googleapis.com/maps/api/js?sensor=false&amp;amp;libraries=places" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
     function initialize() {
        var input = document.getElementById('searchTextField');
        var autocomplete = new google.maps.places.Autocomplete(input);
     }
     google.maps.event.addDomListener(window, 'load', initialize);
  &lt;/script&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
     &lt;div&gt;
        &lt;input id="searchTextField" type="text" size="50" placeholder="Enter a location" autocomplete="on"&gt;
     &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>