The waggle dance communicates the location, distance, quality, and quantity of food sources to hive mates, enabling efficient foraging allocation.