code: public static String formatCoordinate(double coordinate, int precision) {
      String pattern = "0." + new String(new char[precision]).replace("\0", "0");
      DecimalFormat df = (DecimalFormat) DecimalFormat.getInstance(Locale.US);
      df.applyPattern(pattern);
      df.setRoundingMode(RoundingMode.FLOOR);
      return df.format(coordinate);
    }
docs: Allows the specific adjusting of a coordinates precision.
  
  @param coordinate a double value representing a coordinate.
  @param precision  an integer value you'd like the precision to be at.
  @return a formatted string.
  @since 2.1.0