Cities of the first and second class are authorized, upon the passage of a municipal ordinance, to install parking meters on the streets and other municipally owned property of the city.