code: private static String formatWaypointTargets(Point[] waypointTargets) {
      String[] coordinatesFormatted = new String[waypointTargets.length];
      int index = 0;
      for (Point target : waypointTargets) {
        if (target == null) {
          coordinatesFormatted[index++] = "";
        } else {
          coordinatesFormatted[index++] = String.format(Locale.US, "%s,%s",
            TextUtils.formatCoordinate(target.longitude()),
            TextUtils.formatCoordinate(target.latitude()));
        }
      }
      return TextUtils.join(";", coordinatesFormatted);
    }
docs: Converts array of Points with waypoint_targets values
  to a string ready for API consumption.
  
  @param waypointTargets a string representing approaches to each coordinate.
  @return a formatted string.
  @since 4.3.0