@Override
    public ApiException getError() {
      if (successful()) {
        return null;
      }
      return ApiException.from(status, errorMessage);
    }
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