title: limit Google maps of countries in the autocomplete list to "INDIA, USA and UK"
body: <p>This code is not working. Please tell me the exact solution </p>
  
  <pre><code>&lt;script src="maps.googleapis.com/maps/api/…; type="text/javascript"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
     function initialize() {
        var input = document.getElementById('searchTextField');
        /* restrict to multiple cities? */
        var options = {
            types: ['(cities)'],
            componentRestrictions: {country: ["usa", "uk"]}
        };
        var autocomplete = new google.maps.places.Autocomplete(input, options); 
     }
     google.maps.event.addDomListener(window, 'load', initialize);
  &lt;/script&gt;
  </code></pre>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Multiple countries filter in place autocomplete was introduced in version 3.27 of Maps JavaScript API in January 2017:</p>
  
  <blockquote>
    <p>You can now restrict Autocomplete predictions to only surface from multiple countries. You can do this by specifying up to 5 countries in the componentRestrictions field of the AutocompleteOptions.</p>
  </blockquote>
  
  <p><a href="https://developers.google.com/maps/documentation/javascript/releases#327" rel="nofollow noreferrer">https://developers.google.com/maps/documentation/javascript/releases#327</a></p>