@Override
  public String toString() {
    StringBuilder sb = new StringBuilder("[");
    sb.append(departureStop).append(" at ").append(departureTime);
    sb.append(" -> ");
    sb.append(arrivalStop).append(" at ").append(arrivalTime);
    if (headsign != null) {
      sb.append(" (").append(headsign).append(" )");
    }
    if (line != null) {
      sb.append(" on ").append(line);
    }
    sb.append(", ").append(numStops).append(" stops");
    sb.append(", headway=").append(headway).append(" s");
    sb.append("]");
    return sb.toString();
  }
Information about the transit line used in this step.
src/main/java/com/google/maps/model/TransitDetails.java