@Override
    public PlacesSearchResponse getResult() {
      PlacesSearchResponse result = new PlacesSearchResponse();
      result.htmlAttributions = htmlAttributions;
      result.results = results;
      result.nextPageToken = nextPageToken;
      return result;
    }
Restricts the results to places matching the specified type.

@param type The type of place to restrict the results with.
@return Returns this {@code TextSearchRequest} for call chaining.
src/main/java/com/google/maps/TextSearchRequest.java