Pokemon GO's buddy mechanic is quite a handy feature for getting candy and a plethora of other stuff. While some legendary Pokemon only yield candies after players walk 20 km with them, others are much more convenient to explore with as they have a much lower threshold of 1km.