title: Google Places Autocomplete: rectangular bounds vs radius
body: <p>We are using the Javascript API v3 and I want to add a radius to get more local results. But I can't get it to work.</p>
  
  <p>The docs say to use radius with the <a href="https://developers.google.com/places/documentation/autocomplete" rel="nofollow">Google Places API</a> but use a rectangular LatLngBounds for the <a href="https://developers.google.com/maps/documentation/javascript/places#places_autocomplete" rel="nofollow">Google Maps JavaScript API v3</a>. Is that right or can I use radius with Javascript API?</p>
  
  <p>Doesn't work:</p>
  
  <pre><code>    var defaultPlace = new google.maps.LatLng(28.522399, -81.415558);
  
      var optionsAuto = {
          location: defaultPlace,
          radius: 20000
      };
  
      var autocomplete2 = new google.maps.places.Autocomplete(input2, optionsAuto);
  </code></pre>