public static TextSearchRequest textSearchQuery(GeoApiContext context, PlaceType type) {
    TextSearchRequest request = new TextSearchRequest(context);
    request.type(type);
    return request;
  }
Performs a search for Places using a PlaceType parameter.

@param context The context on which to make Geo API requests.
@param type Restricts the results to places matching the specified PlaceType.
@return Returns a TextSearchRequest that can be configured and executed.
src/main/java/com/google/maps/PlacesApi.java