There is a electrical code for outdoor service equipment. Which is any electrical meter and panel coming off that meter. NEC 110.26(A)& 110.26(F). The open zone around service equipment must have 6.6 feet head room, 3 foot in depth and 30 inches or width of equipment from side to side. So all you need to be safe is 30 inches.