protected JSONObject search(@NonNull PlacesQuery params) throws AlgoliaException {
        try {
            JSONObject body = new JSONObject()
                .put("params", params.build());
            return postRequest("/1/places/query", /* urlParameters: */ null, body.toString(), true /* readOperation */, /* requestOptions: */ null);
        }
        catch (JSONException e) {
            throw new RuntimeException(e); // should never happen
        }
    }
protected JSONObject search(@NonNull PlacesQuery params) throws AlgoliaException {
        try {
            JSONObject body = new JSONObject()
                .put("params", params.build());
            return postRequest("/1/places/query",  null, body.toString(), true ,  null);
        }
        catch (JSONException e) {
            throw new RuntimeException(e); 
        }
    }
protected JSONObject search ( @ NonNull PlacesQuery params ) throws AlgoliaException { try { JSONObject body = new JSONObject ( ) . put ( "params" , params . build ( ) ) ; return postRequest ( "/1/places/query" , /* urlParameters: */ null , body . toString ( ) , true /* readOperation */ , /* requestOptions: */ null ) ; } catch ( JSONException e ) { throw new RuntimeException ( e ) ; // should never happen } }
Search for places.

@param params Search parameters.
Search for places .