@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. Provides support for multiple
types.

@deprecated Multiple search types are ignored by the Places API.
@param types The {@link PlaceType}s to restrict results to.
@return Returns this {@code NearbyApiRequest} for call chaining.
src/main/java/com/google/maps/NearbySearchRequest.java