public TextSearchRequest rankby(RankBy ranking) {
    return param("rankby", ranking);
  }
Specifies the order in which results are listed.

@param ranking The rank by method.
@return Returns this {@code TextSearchRequest} for call chaining.
src/main/java/com/google/maps/TextSearchRequest.java