(a) No person shall stop, stand or park a vehicle, except when necessary to avoid a conflict with other traffic or in compliance with the directions of a police officer or traffic control device, in any of the following places: (1) On a sidewalk. (2) In front of or within two feet of a public or private driveway.