title: Google Places and ZERO_RESULTS
body: <p>I've been working on this very simple Google Places search and I cannot get anything but a ZERO_RESULTS. It makes no sense to me at this point as my map is working and displays markers from my database within a separate AJAX function. I've logged my objects and variables and all seem to be just fine.</p>
  
  <p>Why does the success callback go right to my else statement with ZERO_RESULTS?</p>
  
  <pre><code>$( "#submit3" ).click(function(e) {
      e.preventDefault();
      findPlaces();
      $('#results').text("Triggah3!");
  });
  
  function findPlaces() {
  
      var lat = document.getElementById("latitude").value;
      var lng = document.getElementById("longitude").value;
      var cur_location = new google.maps.LatLng(lat, lng);
  
      // prepare request to Places
      var request = {
          location: cur_location,
          radius: 50000,
          types: 'bank'
      };
  
      // send request
      service = new google.maps.places.PlacesService(map);
      service.search(request, createMarkers);
  }
  
  // create markers (from 'findPlaces' function)
  function createMarkers(results, status) {
      if (status == google.maps.places.PlacesServiceStatus.OK) { //ZERO_RESULTS
  
          // if we have found something - clear map (overlays)
          clearOverlays();
  
          // and create new markers by search result
          for (var i = 0; i &lt; results.length; i++) {
              createMarker(results[i]);
          }
      } else if (status == google.maps.places.PlacesServiceStatus.ZERO_RESULTS) {
          alert('Sorry, nothing is found');
      }
  }
  
  // create single marker function
  function createMarker(obj) {
  
      // prepare new Marker object
      var mark = new google.maps.Marker({
          position: obj.geometry.location,
          map: map,
          title: obj.name
      });
      markers.push(mark);
  
      // prepare info window
      var infowindow = new google.maps.InfoWindow({
          content: '&lt;img src="' + obj.icon + '" /&gt;&lt;font style="color:#000;"&gt;' + obj.name + 
          '&lt;br /&gt;Rating: ' + obj.rating + '&lt;br /&gt;Vicinity: ' + obj.vicinity + '&lt;/font&gt;'
      });
  
      // add event handler to current marker
      google.maps.event.addListener(mark, 'click', function() {
          clearInfos();
          infowindow.open(map,mark);
      });
      infos.push(infowindow);
  }
  </code></pre>