code: public static String formatLatitude(final Latitude latitude,
                                        final PointLocationFormatType formatType)
      throws FormatterException
    {
      if (latitude == null)
      {
        throw new FormatterException("No point location provided");
      }
      if (formatType == null)
      {
        throw new FormatterException("No format type provided");
      }
  
      final String formatted;
      switch (formatType)
      {
        case HUMAN_LONG:
          formatted = latitude.toString();
          break;
        case HUMAN_MEDIUM:
          formatted = formatLatitudeHumanMedium(latitude);
          break;
        case LONG:
          formatted = formatLatitudeLong(latitude);
          break;
        case MEDIUM:
          formatted = formatLatitudeMedium(latitude);
          break;
        case SHORT:
          formatted = formatLatitudeShort(latitude);
          break;
        case DECIMAL:
          formatted = formatLatitudeWithDecimals(latitude);
          break;
        default:
          throw new FormatterException("Unsupported format type");
      }
      return formatted;
  
    }
docs: Formats a latitude as an ISO 6709 string.
  
  @param latitude
  Latitude to format
  @param formatType
  Format type
  @return Formatted string
  @throws FormatterException
  On an exception