The legislative body of any municipality may grant a franchise to any person, firm, or corporation, whether operating under an existing franchise or not, to use, or to construct and use, poles, wires, conduits, and appurtenances for transmitting and distributing electricity for all purposes, or to use, or to lay and use, pipes and appurtenances for transmitting and distributing gas or industrial gas for all purposes, or to use, or to lay and use, pipes and appurtenances for transmitting and distributing oil or products thereof for all purposes, or to lay and use pipes, ditches, flumes, conduits, and appurtenances for transmitting and distributing water for all purposes, under, along, across, or upon the public streets, ways, alleys, and places within the municipality, upon the terms and conditions provided in this chapter.