@Override
  public String toString() {
    StringBuilder sb = new StringBuilder("[DirectionsStep: ");
    sb.append("\"").append(htmlInstructions).append("\"");
    sb.append(String.format(" (%s -> %s", startLocation, endLocation)).append(")");
    sb.append(" ").append(travelMode);
    sb.append(", duration=").append(duration);
    sb.append(", distance=").append(distance);
    if (steps != null && steps.length > 0) {
      sb.append(", ").append(steps.length).append(" substeps");
    }
    if (transitDetails != null) {
      sb.append(", transitDetails=").append(transitDetails);
    }
    sb.append("]");
    return sb.toString();
  }
Transit-specific information. This field is only returned when travel_mode is set to "transit".
See <a
href="https://developers.google.com/maps/documentation/directions/intro#TransitDetails">Transit
Details</a> for more detail.
src/main/java/com/google/maps/model/DirectionsStep.java