It seems like they are also an excellent candidate. Some are fleet vehicles, which means you can plan charging into schedules and routes, and they probably have maintenance contracts.
The potential issue I see is batteries not being sufficient for heavier duty trucks / loads -- the range could be impractical. Also, I have no idea what the power draw for a garbage truck compactor is, but it can't be small.