The mayor and council of the city shall have the full right and power, by ordinance, to regulate all vehicles of every kind and description used in the city for hire or profit in the transportation of passengers, freight, drayage or either or all of them; to provide for the inspection of same; to fix the rates of fare therefor; and to fu and prescribe penalties for violation thereof.