title: Restricting search based on a particular country in the Google Maps Places API
body: <p>I am using the Google Maps' Places API for autocompletion of location as user types. But how can I restrict the suggestions to a particular country?</p>
  <p>Here is my javascript:</p>
  <pre><code>function initAutocomplete() {
  
      // Create the search box and link it to the UI element.
      var input = document.getElementById('autocomplete-input');
      var searchBox = new google.maps.places.SearchBox(input);
  
      // [START region_getplaces]
      // Listen for the event fired when the user selects a prediction and retrieve
      // more details for that place.
      searchBox.addListener('places_changed', function() {
          var places = searchBox.getPlaces();
          if (places.length == 0) {
              return;
          }
      });
  }
  </code></pre>