title: Google Maps Javascript API V3 : Search Requests
body: <p>When calling search service api </p>
  
  <pre><code>var pyrmont = new google.maps.LatLng(-33.8665433,151.1956316);
  var request = { location: pyrmont, radius: '500', types: ['store'] };
  service = new google.maps.places.PlacesService(map);
  service.search(request, callback);</code></pre>
  
  <ol>
  <li>is it necessary to give the location/radius of the search area?</li>
  <li>What about if i want to search a location in total world not in specified area like google does at <a href="http://maps.google.com/" rel="nofollow">http://maps.google.com/</a>.</li>
  </ol>
  
  <p><strong>--- UPDATE ---</strong></p>
  
  <p>This is my updated code as @Trott advised but i am getting status = "ZERO_RESULTS" in my callback function.</p>
  
  <pre><code>var keyword='search placename';
  var request = { name : keyword,
  bounds : new google.maps.LatLngBounds(
  google.maps.LatLng(-89.999999,-179.999999),
  google.maps.LatLng(89.999999,179.999999)
  )};
  service = new google.maps.places.PlacesService(map);
  service.search(request, callback);
  
  function callback(results, status)
  {
      console.log("status="+status);
      if ( status == google.maps.places.PlacesServiceStatus.OK)
      {
          for (var i = 0; i &lt; results.length; i++)
          console.log(results[i]); 
      }
  }
  </code></pre>
  
  <p>What i am doing wrong?</p>