The basic purpose and function of zoning is to divide a municipality into residential, commercial, and industrial districts (or zones), that are for the most part separate from one another, with the use of property within each district being reasonably uniform.