title: Google Maps API v3 Rank by Distance Unexpected Results
body: <p>I ran into an issue with the rank by distance search from the Google API here:
  <a href="https://developers.google.com/maps/documentation/javascript/places#place_search_requests" rel="nofollow">https://developers.google.com/maps/documentation/javascript/places#place_search_requests</a>
  I receive several results when using a radius search of 50km, but if I do a rank by distance search I only receive a few.</p>
  
  <p>Example Requests:</p>
  
  <h1>Radius Request</h1>
  
  <pre><code>var request = {
      location: whatever,
      radius: '50000',
      types: ['grocery_or_supermarket']
  };
  </code></pre>
  
  <h1>Rank by Request</h1>
  
  <pre><code>var request = {
      location: whatever,
      rankby : google.maps.places.RankBy.DISTANCE,
      types: ['grocery_or_supermarket']
  };
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>I am using the nearbySearch. I understand there is a cap of 20 on the nearbySearch, but the rankby search is only returning 1-5 results when using the rankBy flag. The radius search returns the maximum of 20.</p>