title: Google Places API - Using multiple place types from a checkbox
body: <p>UPDATED:
  I am trying to send a google places API request with multiple types as an array. However, I am not able to pass an array variable with the list of places added from checkbox values. Any help would be highly appreciated.</p>
  
  <p>This works:</p>
  
  <pre><code>var poi = new google.maps.LatLng(lt,lg);
  var gplaces = ['shopping_mall','bus_station'];
  
  var request = {
      location: poi,
      radius: '500',
      types: gplaces
    };
  </code></pre>
  
  <p>But not this:</p>
  
  <pre><code>var poi = new google.maps.LatLng(lt,lg);
  var gplaces = []
  
  $('#chklist:checked').each(function() {
     gplaces.push($(this).val());
   });
  
  var request = {
      location: poi,
      radius: '500',
      types: gplaces
    };
  </code></pre>
  
  <p>In the second case, the API would return a default list of places(as if I did not pass any types at all).</p>
  
  <p>I tried a console.log(gplaces) and it contains ['shopping_mall','bus_station'].</p>
  
  <p>I also checked console.log(request) and I could see the individual elements of the list in the request.</p>
  
  <p>Can someone please help me with this?</p>