As long as your cargo bike has steel forks go for a front hub motor. And buy or make at least 2 torque arms just for the safety factor. Of the 2 different types direct drive is heavier and without power to it has some resistance from the magnets in the hub. The geared hubs are smaller, lighter and have little to no resistance when not powered.