code: String formatUnits(int units) {
  		switch (unitType) {
  			case ENGLISH:
  				return NumberFormat.getDecimalFormat().format(units) + (widthInUnitsIsMiles ? " mi" : " yd");
  			case ENGLISH_FOOT:
  				return NumberFormat.getDecimalFormat().format(units) + (widthInUnitsIsMiles ? " mi" : " ft");
  			case METRIC:
  				if (units < 10000) {
  					return NumberFormat.getDecimalFormat().format(units) + " m";
  				} else {
  					return NumberFormat.getDecimalFormat().format((double) units / 1000) + " km";
  				}
  
  			case CRS:
  				return NumberFormat.getDecimalFormat().format(units) + " u";
  
  			default:
  				throw new IllegalStateException("Unknown unit type " + unitType);
  		}
  	}
docs: Convert distance (in CRS units) to human readable format (including unit indicator).
  
  @param units unit
  @return human readable string in unit type