title: PlaceFilter Place Type from Google Places API Android
body: <p>I want to ask how to get nearby Places with filter type (Example: shopping mall, bank) from new google places api (<a href="https://developers.google.com/places/android/start" rel="nofollow">https://developers.google.com/places/android/start</a>)</p>
  
  <p>Here my code (I already add some alternative in loop conditions), but I want to filter types from PlaceFilter not in loop conditions.</p>
  
  <pre><code>PendingResult&lt;PlaceLikelihoodBuffer&gt; result = Places.PlaceDetectionApi
              .getCurrentPlace(mGoogleApiClient, null);
      result.setResultCallback(new ResultCallback&lt;PlaceLikelihoodBuffer&gt;() {
          @Override
          public void onResult(PlaceLikelihoodBuffer likelyPlaces) {
              for (PlaceLikelihood placeLikelihood : likelyPlaces) {
                  list = placeLikelihood.getPlace().getPlaceTypes();
                  for(int i = 0; i &lt; list.size(); i++)
                  {
                      if(list.get(i) == Place.TYPE_SHOPPING_MALL) {
                          Log.i(TAG, String.format("Place '%s' has likelihood: %g",
                                  placeLikelihood.getPlace().getName(),
                                  placeLikelihood.getLikelihood()));
                      }
                  }
              }
              likelyPlaces.release();
          }
      });
  </code></pre>
  
  <p>Please help, Many thanks</p>