The police chief is hereby authorized, whenever in his judgment it is necessary or proper, to prohibit or restrict the parking of vehicles along a street, or part thereof, constituting the route or part of a route, of a parade; and he shall erect temporary traffic signs to that effect. It shall be unlawful to park or leave unattended any vehicle in violation of such signs.