Every municipality shall have the power by ordinance or resolution to designate routes of travel on the public streets and highways within and through the municipality for commercial motor carriers, trucks, and buses and to require such motor vehicles to follow such designated routes of travel within and through the municipality with provision for permission for such motor vehicles to deviate from such designated routes to the extent required to reach a necessary destination within the municipality not on such designated routes.
SDCL 9-31-2