I suppose there was a reason for creating the ordinance?
I like to strip off to swim shorts and ride in the rain, occasionally. I did it one time with bare feet. The pedals have short pointy spikes for shoes to grip on, and it was painful without shoes. Flip flops are okay for that, but sneakers are better.
Many years ago when I was a teen, and rode a motorcycle, one of our guys liked to ride his motorcycle in bare feet, and he'd walk around like that. Then one night, we were in an amusement arcade when he walked in and accidentally kicked a wire crate that held sodas. I've never seen so much blood in my life. Shoes are a good idea!
Incidentally, while riding with a wild pack on motorcycles, I took a sharp curve a bit too hard. I was wearing chisel-toe boots, and the point of the boot touched the road and ripped the sole off. That could have been my toes.
I can understand why the ordinance was made if people have been getting hurt because of bare feet. Who pays their medical bills?